From dde30b92d92c411f47686d0e820fed307ba10c74 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sun, 12 Nov 2017 01:03:14 +0100 Subject: [PATCH] Stub GPU defines and class when profiler is disabled. --- TracyOpenGL.hpp | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/TracyOpenGL.hpp b/TracyOpenGL.hpp index c5073640..7afcba66 100644 --- a/TracyOpenGL.hpp +++ b/TracyOpenGL.hpp @@ -1,7 +1,24 @@ #ifndef __TRACYOPENGL_HPP__ #define __TRACYOPENGL_HPP__ -#ifdef TRACY_ENABLE +#ifndef TRACY_ENABLE + +#define TracyGpuZone(x,y) +#define TracyGpuZoneC(x,y,z) + +namespace tracy +{ + +template +class GpuCtx +{ +public: + void Collect() {} +}; + +} + +#else #include