GPU: Move graphics API reset state to System
Stops us trying to reset state on objects which don't exist if initialization failed (apparently some Android devices.. of course).
This commit is contained in:
@ -1477,6 +1477,8 @@ void System::DestroySystem()
|
||||
Timers::Shutdown();
|
||||
Pad::Shutdown();
|
||||
CDROM::Shutdown();
|
||||
if (g_gpu)
|
||||
g_gpu->ResetGraphicsAPIState();
|
||||
g_gpu.reset();
|
||||
InterruptController::Shutdown();
|
||||
DMA::Shutdown();
|
||||
|
||||
Reference in New Issue
Block a user