mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-05 23:58:59 +00:00
Split VideoBackend::Cleanup from Shutdown.
First is called from ogl/d3d thread, second is called from emulation thread (x11...)
This commit is contained in:
parent
90ff648d00
commit
4883fa268f
10 changed files with 32 additions and 1 deletions
|
@ -210,7 +210,11 @@ void VideoBackend::Video_Prepare()
|
|||
void VideoBackend::Shutdown()
|
||||
{
|
||||
s_BackendInitialized = false;
|
||||
GLInterface->Shutdown();
|
||||
}
|
||||
|
||||
void VideoBackend::Video_Cleanup() {
|
||||
|
||||
if (g_renderer)
|
||||
{
|
||||
s_efbAccessRequested = false;
|
||||
|
@ -236,7 +240,6 @@ void VideoBackend::Shutdown()
|
|||
delete g_renderer;
|
||||
g_renderer = NULL;
|
||||
}
|
||||
GLInterface->Shutdown();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue