From 5a224d7a2b458a35ad373ff966007207e95fecaf Mon Sep 17 00:00:00 2001 From: Henrik Rydgard Date: Mon, 8 Oct 2018 13:33:21 +0200 Subject: [PATCH] Disable CheckFailedGPUBackends() in debug builds, for convenience --- UI/NativeApp.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/UI/NativeApp.cpp b/UI/NativeApp.cpp index 2ad5e80e02..c31745337b 100644 --- a/UI/NativeApp.cpp +++ b/UI/NativeApp.cpp @@ -352,6 +352,12 @@ void CreateDirectoriesAndroid() { } static void CheckFailedGPUBackends() { +#ifdef _DEBUG + // If you're in debug mode, you probably don't want a fallback. If you're in release mode, use IGNORE below. + WARN_LOG(LOADER, "Not checking for failed graphics backends in debug mode"); + return; +#endif + // We only want to do this once per process run and backend, to detect process crashes. // If NativeShutdown is called before we finish, we might call this multiple times. static int lastBackend = -1;