Stub GPU defines and class when profiler is disabled.

This commit is contained in:
Bartosz Taudul 2017-11-12 01:03:14 +01:00
parent a6bca43cca
commit dde30b92d9

View File

@ -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<int>
class GpuCtx
{
public:
void Collect() {}
};
}
#else
#include <atomic>