mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-26 12:48:16 +00:00
OPENGLSDL: Destroy GL context on exit with SDL2.
This commit is contained in:
parent
d029f16799
commit
b7e64c6eeb
@ -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() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user