From e606c75695aa4c27328f3b466f7ccd4c27003601 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sat, 29 May 2021 12:01:03 +0200 Subject: [PATCH] Don't require GL headers if tracing is disabled. --- TracyOpenGL.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/TracyOpenGL.hpp b/TracyOpenGL.hpp index b30457e9..8a487a33 100644 --- a/TracyOpenGL.hpp +++ b/TracyOpenGL.hpp @@ -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 #include #include