Make OpenGL render thread shutdown more robust.

This commit is contained in:
Henrik Rydgård committed 2026-08-04 16:44:55 +02:00
1 parent 092ec2f391
commit be922eca62
20 files changed
+169 -178

No files matched your search

+5 -3
View File
@@ -944,17 +944,19 @@ bool CreateGlobalPipelines() {
return true;
}
void NativeShutdownGraphics(GraphicsContext *graphicContext) {
void NativeShutdownGraphics(GraphicsContext *graphicsContext) {
INFO_LOG(Log::System, "NativeShutdownGraphics begin");
graphicsContext->NotifyEmuThreadExit();
if (g_screenManager) {
g_screenManager->deviceLost();
}
g_iconCache.ClearTextures();
// TODO: This is not really necessary with Vulkan on Android - could keep shaders etc in memory
if (gpu)
if (gpu) {
gpu->DeviceLost();
}
#if PPSSPP_PLATFORM(WINDOWS) && !PPSSPP_PLATFORM(UWP)
if (winCamera) {