Add safety check to exit game in Release mode when running with graphics debugger attached
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user