Fix commandline options in build

This commit is contained in:
Wojtek Figat
2024-07-06 12:57:19 +02:00
parent 559cd74647
commit bee39dda58
3 changed files with 17 additions and 13 deletions

View File

@@ -188,9 +188,14 @@ bool GraphicsService::Init()
);
// Initialize
if (device->IsDebugToolAttached ||
CommandLine::Options.ShaderProfile ||
CommandLine::Options.ShaderDebug)
if (device->IsDebugToolAttached
#if USE_EDITOR || !BUILD_RELEASE
|| CommandLine::Options.ShaderProfile
#endif
#if USE_EDITOR
|| CommandLine::Options.ShaderDebug
#endif
)
{
#if COMPILE_WITH_PROFILER
// Auto-enable GPU events