Browse files

Disable CheckFailedGPUBackends() in debug builds, for convenience

  • Loading branch information...
Henrik Rydgard
Henrik Rydgard committed Oct 8, 2018
1 parent 52739a1 commit 5a224d7a2b458a35ad373ff966007207e95fecaf
Showing with 6 additions and 0 deletions.
  1. +6 −0 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");
// 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;

0 comments on commit 5a224d7

Please sign in to comment.