diff options
author | Johannes Schickel | 2015-12-20 05:55:20 +0100 |
---|---|---|
committer | Johannes Schickel | 2016-03-16 20:29:25 +0100 |
commit | 19abd8ccbba339c2ea9691ef017a447b7c47701e (patch) | |
tree | c433ea19b7eced18fd2c281e28c46ce81927cd95 | |
parent | 1c61e017a0eec8eff4d5f6281c2bd4e906103773 (diff) | |
download | scummvm-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.cpp | 3 |
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) { |