mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-09-05 04:05:27 +02:00
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:
@@ -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!");
|
||||
|
||||
Reference in New Issue
Block a user