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__ #ifndef __TRACYOPENGL_HPP__
#define __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__ #if !defined TRACY_ENABLE || defined __APPLE__
#define TracyGpuContext #define TracyGpuContext
@ -35,6 +31,10 @@ public:
#else #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 <atomic>
#include <assert.h> #include <assert.h>
#include <stdlib.h> #include <stdlib.h>