aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Schickel2015-12-20 05:55:20 +0100
committerJohannes Schickel2016-03-16 20:29:25 +0100
commit19abd8ccbba339c2ea9691ef017a447b7c47701e (patch)
treec433ea19b7eced18fd2c281e28c46ce81927cd95
parent1c61e017a0eec8eff4d5f6281c2bd4e906103773 (diff)
downloadscummvm-rg350-19abd8ccbba339c2ea9691ef017a447b7c47701e.tar.gz
scummvm-rg350-19abd8ccbba339c2ea9691ef017a447b7c47701e.tar.bz2
scummvm-rg350-19abd8ccbba339c2ea9691ef017a447b7c47701e.zip
OPENGL: Reset context description on context destroy.
-rw-r--r--backends/graphics/opengl/opengl-graphics.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/backends/graphics/opengl/opengl-graphics.cpp b/backends/graphics/opengl/opengl-graphics.cpp
index 1b20a31363..7078aa896f 100644
--- a/backends/graphics/opengl/opengl-graphics.cpp
+++ b/backends/graphics/opengl/opengl-graphics.cpp
@@ -1004,6 +1004,9 @@ void OpenGLGraphicsManager::notifyContextDestroy() {
_shader->destroy();
}
#endif
+
+ // Rest our context description since the context is gone soon.
+ g_context.reset();
}
void OpenGLGraphicsManager::adjustMousePosition(int16 &x, int16 &y) {