From 6ba0a6cdfd94c8d07d5da59f46fefe3830e2120b Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Sun, 8 Apr 2018 19:28:15 -0700 Subject: [PATCH] Android: End GLES renderer after emu thread join. This matches other backends, and prevents things from being added to the deleter after GLES end. Fixes #10849. --- android/jni/app-android.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/android/jni/app-android.cpp b/android/jni/app-android.cpp index 9ebb82dc0b..602bfd0025 100644 --- a/android/jni/app-android.cpp +++ b/android/jni/app-android.cpp @@ -551,7 +551,6 @@ extern "C" void Java_org_ppsspp_ppsspp_NativeRenderer_displayInit(JNIEnv * env, if (renderer_inited) { // Would be really nice if we could get something on the GL thread immediately when shutting down... ILOG("NativeApp.displayInit() restoring"); - graphicsContext->ThreadEnd(); if (useCPUThread) { EmuThreadStop(); while (graphicsContext->ThreadFrame()) { @@ -561,6 +560,7 @@ extern "C" void Java_org_ppsspp_ppsspp_NativeRenderer_displayInit(JNIEnv * env, } else { NativeShutdownGraphics(); } + graphicsContext->ThreadEnd(); graphicsContext->ShutdownFromRenderThread(); ILOG("Shut down both threads. Now let's bring it up again!");