summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/Src/OnScreenDisplay.cpp
diff options
context:
space:
mode:
authorRyan Houdek <Sonicadvance1@gmail.com>2013-09-23 01:43:18 -0500
committerRyan Houdek <Sonicadvance1@gmail.com>2013-09-23 01:43:18 -0500
commit96a77f9feb1b7feb915efa91582b73814b4e960d (patch)
tree340bd8c62bf603464d8b5962b1055fb0730ef11e /Source/Core/VideoCommon/Src/OnScreenDisplay.cpp
parentbab91494d53f15d804834ba5d11730b0e855ebd8 (diff)
[Android] Fix the ability to stop the game and start another.
Diffstat (limited to 'Source/Core/VideoCommon/Src/OnScreenDisplay.cpp')
-rw-r--r--Source/Core/VideoCommon/Src/OnScreenDisplay.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/Core/VideoCommon/Src/OnScreenDisplay.cpp b/Source/Core/VideoCommon/Src/OnScreenDisplay.cpp
index b66c2019c9..90e5c008ef 100644
--- a/Source/Core/VideoCommon/Src/OnScreenDisplay.cpp
+++ b/Source/Core/VideoCommon/Src/OnScreenDisplay.cpp
@@ -84,6 +84,10 @@ void DoCallbacks(CallbackType type)
{
it->second();
}
+
+ // Wipe all callbacks on shutdown
+ if (type == OSD_SHUTDOWN)
+ s_callbacks.clear();
}
} // namespace