Add safety check to exit game in Release mode when running with graphics debugger attached

This commit is contained in:
Wojtek Figat
2024-10-11 20:15:17 +02:00
parent 575a286e1e
commit ff495e1319

View File

@@ -200,6 +200,10 @@ bool GraphicsService::Init()
#endif
)
{
#if !USE_EDITOR && BUILD_RELEASE
// Block graphics debugging to protect contents
Platform::Fatal(TEXT("Graphics debugger attached."));
#endif
#if COMPILE_WITH_PROFILER
// Auto-enable GPU events
ProfilerGPU::EventsEnabled = true;