1
0
mirror of https://github.com/wolfpld/tracy.git synced 2025-03-20 07:40:02 +08:00

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
+4 -4
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>