Don't require GL headers if tracing is disabled.

This commit is contained in:
Bartosz Taudul 2021-05-29 12:01:03 +02:00
parent 5f7225ce32
commit e606c75695
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -1,10 +1,6 @@
#ifndef __TRACYOPENGL_HPP__
#define __TRACYOPENGL_HPP__
#if !defined GL_TIMESTAMP && !defined GL_TIMESTAMP_EXT
# error "You must include OpenGL 3.2 headers before including TracyOpenGL.hpp"
#endif
#if !defined TRACY_ENABLE || defined __APPLE__
#define TracyGpuContext
@ -35,6 +31,10 @@ public:
#else
#if !defined GL_TIMESTAMP && !defined GL_TIMESTAMP_EXT
# error "You must include OpenGL 3.2 headers before including TracyOpenGL.hpp"
#endif
#include <atomic>
#include <assert.h>
#include <stdlib.h>