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.
This commit is contained in:
Unknown W. Brackets 2018-04-08 19:28:15 -07:00
parent 32eb483932
commit 6ba0a6cdfd

View File

@ -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!");