From 19abd8ccbba339c2ea9691ef017a447b7c47701e Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Sun, 20 Dec 2015 05:55:20 +0100 Subject: OPENGL: Reset context description on context destroy. --- backends/graphics/opengl/opengl-graphics.cpp | 3 +++ 1 file changed, 3 insertions(+) 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) { -- cgit v1.2.3