summaryrefslogtreecommitdiff
path: root/Source/Core/VideoBackends/Software/SWmain.cpp
diff options
context:
space:
mode:
authorPierre Bourdon <delroth@gmail.com>2016-01-03 00:09:39 +0100
committerPierre Bourdon <delroth@gmail.com>2016-01-03 00:09:39 +0100
commitf0e5811d9af52c17598cf2dd1ba994ee12cbe53e (patch)
tree77fe33b7f11966a6bb2177fa040abc5381f74a84 /Source/Core/VideoBackends/Software/SWmain.cpp
parent497a93d45f83b9be92bceb1b2a6df2b5a40f8495 (diff)
parent01f99a04a2af61d70fc2a5eed14b2a0bf3c05696 (diff)
Merge pull request #3435 from lioncash/backend
VideoBackend: Get rid of a boolean global
Diffstat (limited to 'Source/Core/VideoBackends/Software/SWmain.cpp')
-rw-r--r--Source/Core/VideoBackends/Software/SWmain.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/Core/VideoBackends/Software/SWmain.cpp b/Source/Core/VideoBackends/Software/SWmain.cpp
index c891542d8a..a7efeaa4dd 100644
--- a/Source/Core/VideoBackends/Software/SWmain.cpp
+++ b/Source/Core/VideoBackends/Software/SWmain.cpp
@@ -86,6 +86,7 @@ bool VideoSoftware::Initialize(void *window_handle)
SWRenderer::Init();
DebugUtil::Init();
+ m_initialized = true;
return true;
}
@@ -145,6 +146,8 @@ void VideoSoftware::EmuStateChange(EMUSTATE_CHANGE newState)
void VideoSoftware::Shutdown()
{
+ m_initialized = false;
+
// TODO: should be in Video_Cleanup
SWRenderer::Shutdown();
DebugUtil::Shutdown();