mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-15 23:40:29 +02:00
Vulkan: Avoid crash on double DeviceLost.
This caused Android to crash when switching to OpenGL, because the destructor would try to deinit again. There weren't any objects, but draw_ was no longer valid.
This commit is contained in:
1 parent
9eeea5a366
commit
8418287a87
3 files changed
+6
-4
No files matched your search
+2
-2
@@ -1048,13 +1048,13 @@ bool CreateGlobalPipelines() {
|
||||
}
|
||||
|
||||
void NativeShutdownGraphics() {
|
||||
INFO_LOG(SYSTEM, "NativeShutdownGraphics");
|
||||
|
||||
screenManager->deviceLost();
|
||||
|
||||
if (gpu)
|
||||
gpu->DeviceLost();
|
||||
|
||||
INFO_LOG(SYSTEM, "NativeShutdownGraphics");
|
||||
|
||||
#if PPSSPP_PLATFORM(WINDOWS)
|
||||
delete winAudioBackend;
|
||||
winAudioBackend = nullptr;
|
||||
|
||||
Reference in new issue
Block a user