Skip to content

Commit 3bbe2c7

Browse files
committed
guarding tracy gpu instrumentation on non tracy builds
1 parent 2f22bba commit 3bbe2c7

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

source/backends/opengl_backend.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,13 @@
77
#include <glm/gtc/type_ptr.hpp>
88
#include <stdexcept>
99
#include <span>
10+
#ifdef TRACY_ENABLE
1011
#include <tracy/TracyOpenGL.hpp>
12+
#else
13+
#define TracyGpuContext
14+
#define TracyGpuZone(x)
15+
#define TracyGpuCollect
16+
#endif
1117

1218
namespace Nothofagus
1319
{

0 commit comments

Comments
 (0)