diff options
author | Johannes Schickel | 2015-12-20 09:58:35 +0100 |
---|---|---|
committer | Johannes Schickel | 2016-03-16 20:29:25 +0100 |
commit | b7e64c6eebd08f0f95c270a2f1f3fc78a12ce764 (patch) | |
tree | 0eb80a306b01fbbbf4540fd18b6f7f316f1fd071 /backends/graphics/openglsdl | |
parent | d029f167996f3328ac278829802d9c1a32c620e2 (diff) | |
download | scummvm-rg350-b7e64c6eebd08f0f95c270a2f1f3fc78a12ce764.tar.gz scummvm-rg350-b7e64c6eebd08f0f95c270a2f1f3fc78a12ce764.tar.bz2 scummvm-rg350-b7e64c6eebd08f0f95c270a2f1f3fc78a12ce764.zip |
OPENGLSDL: Destroy GL context on exit with SDL2.
Diffstat (limited to 'backends/graphics/openglsdl')
-rw-r--r-- | backends/graphics/openglsdl/openglsdl-graphics.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/backends/graphics/openglsdl/openglsdl-graphics.cpp b/backends/graphics/openglsdl/openglsdl-graphics.cpp index f2af7ccadd..2171b9554c 100644 --- a/backends/graphics/openglsdl/openglsdl-graphics.cpp +++ b/backends/graphics/openglsdl/openglsdl-graphics.cpp @@ -194,6 +194,10 @@ OpenGLSdlGraphicsManager::OpenGLSdlGraphicsManager(uint desktopWidth, uint deskt } OpenGLSdlGraphicsManager::~OpenGLSdlGraphicsManager() { +#if SDL_VERSION_ATLEAST(2, 0, 0) + notifyContextDestroy(); + SDL_GL_DeleteContext(_glContext); +#endif } void OpenGLSdlGraphicsManager::activateManager() { |