mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-18 03:44:32 +01:00
Make OpenGL render thread shutdown more robust.
This commit is contained in:
1 parent
092ec2f391
commit
be922eca62
20 files changed
+169
-178
No files matched your search
+5
-3
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user