Fixed Optick related compile warnings on Linux #750

This commit is contained in:
Robert Beckebans 2023-03-05 11:03:54 +01:00
parent 0ac23b5f94
commit 784c46ebc7
2 changed files with 5 additions and 6 deletions

View file

@ -106,9 +106,7 @@ const int MAX_EXPRESSION_REGISTERS = 4096;
#endif
// RB: make Optick profiling available everywhere
#if defined( USE_OPTICK )
#include "../libs/optick/optick.h"
#endif
#include "../libs/optick/optick.h"
#include "../renderer/Cinematic.h"
#include "../renderer/Material.h"

View file

@ -33,9 +33,10 @@
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// MASTER SWITCH - use it for disabling profiler in final builds //
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
#if !defined(USE_OPTICK)
#define USE_OPTICK (1)
#endif
// RB: only set this through CMakeLists.txt
//#if !defined(USE_OPTICK)
//#define USE_OPTICK (1)
//#endif
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////