mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-15 05:47:56 -07:00
Set g_texture_cache to NULL upon shutdown. Fixes a crash introduced in previous commits.
This commit is contained in:
parent
cc0523e55b
commit
1c8cdebc22
@ -230,6 +230,7 @@ void VideoBackend::Shutdown()
|
||||
delete g_texture_cache;
|
||||
delete g_renderer;
|
||||
g_renderer = NULL;
|
||||
g_texture_cache = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -212,6 +212,7 @@ void VideoBackend::Shutdown()
|
||||
delete g_texture_cache;
|
||||
delete g_renderer;
|
||||
g_renderer = NULL;
|
||||
g_texture_cache = NULL;
|
||||
}
|
||||
D3D::Shutdown();
|
||||
}
|
||||
|
@ -235,6 +235,7 @@ void VideoBackend::Shutdown()
|
||||
OpcodeDecoder_Shutdown();
|
||||
delete g_renderer;
|
||||
g_renderer = NULL;
|
||||
g_texture_cache = NULL;
|
||||
}
|
||||
OpenGL_Shutdown();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user