summaryrefslogtreecommitdiff
path: root/Source/Core/VideoBackends/Software/SWmain.cpp
diff options
context:
space:
mode:
authordegasus <wickmarkus@web.de>2015-02-01 13:51:34 +0100
committerdegasus <wickmarkus@web.de>2015-02-01 13:51:34 +0100
commit081137bd4f4fdba599374a43086fe6688ef8c58b (patch)
tree01c61ac63f0a5c48f5ab1c4d7e15c9d7e5c071f4 /Source/Core/VideoBackends/Software/SWmain.cpp
parent3c475b91ea5c4baa13b1339c3d2921938e8a3be9 (diff)
VideoBackends: set GLInterface to zero after deleting it
This fixes a crash on opening the gfx settings after closing a game.
Diffstat (limited to 'Source/Core/VideoBackends/Software/SWmain.cpp')
-rw-r--r--Source/Core/VideoBackends/Software/SWmain.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/Core/VideoBackends/Software/SWmain.cpp b/Source/Core/VideoBackends/Software/SWmain.cpp
index 004ae5e2bf..497d26be00 100644
--- a/Source/Core/VideoBackends/Software/SWmain.cpp
+++ b/Source/Core/VideoBackends/Software/SWmain.cpp
@@ -164,6 +164,7 @@ void VideoSoftware::Shutdown()
GLInterface->Shutdown();
delete GLInterface;
+ GLInterface = nullptr;
}
void VideoSoftware::Video_Cleanup()