From b15c6fc29534a8ac5e845dee011dbadbe841e008 Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Sat, 1 Oct 2016 17:19:16 -0700 Subject: [PATCH] Oops, only call gl_lost() for OpenGL. --- UI/NativeApp.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/UI/NativeApp.cpp b/UI/NativeApp.cpp index 4c35a532fb..ed4fb5d3dd 100644 --- a/UI/NativeApp.cpp +++ b/UI/NativeApp.cpp @@ -821,7 +821,9 @@ void NativeDeviceLost() { if (g_gameInfoCache) g_gameInfoCache->Clear(); screenManager->deviceLost(); - gl_lost(); + if (GetGPUBackend() == GPUBackend::OPENGL) { + gl_lost(); + } } void NativeDeviceRestore() {