Split VideoBackend::Cleanup from Shutdown.
First is called from ogl/d3d thread, second is called from emulation thread (x11...)
This commit is contained in:
1 parent
90ff648d00
commit
4883fa268f
10 files changed
+32
-1
No files matched your search
@@ -15,6 +15,7 @@ class VideoBackend : public VideoBackendHardware
|
||||
std::string GetName();
|
||||
|
||||
void Video_Prepare();
|
||||
void Video_Cleanup();
|
||||
|
||||
void ShowConfig(void* parent);
|
||||
|
||||
|
||||
@@ -207,6 +207,7 @@ void VideoBackend::Shutdown()
|
||||
{
|
||||
s_BackendInitialized = false;
|
||||
|
||||
// TODO: should be in Video_Cleanup
|
||||
if (g_renderer)
|
||||
{
|
||||
s_efbAccessRequested = FALSE;
|
||||
@@ -234,4 +235,7 @@ void VideoBackend::Shutdown()
|
||||
}
|
||||
}
|
||||
|
||||
void VideoBackend::Video_Cleanup() {
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user