OPENGLSDL: Destroy GL context on exit with SDL2.

This commit is contained in:
Johannes Schickel 2015-12-20 09:58:35 +01:00
parent d029f16799
commit b7e64c6eeb

View File

@ -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() {