mirror of
https://github.com/yawut/SDL.git
synced 2026-08-28 03:34:44 -05:00
Fixed bug #1000
Don't crash if someone tries to delete a context after we've unloaded the library. In this case it's SDL_compat that doesn't know SDL_VideoQuit() has been called. Hmm...
This commit is contained in:
@@ -3271,7 +3271,7 @@ SDL_GL_SwapWindow(SDL_Window * window)
|
||||
void
|
||||
SDL_GL_DeleteContext(SDL_GLContext context)
|
||||
{
|
||||
if (!_this || !context) {
|
||||
if (!_this || !_this->gl_data || !context) {
|
||||
return;
|
||||
}
|
||||
_this->GL_MakeCurrent(_this, NULL, NULL);
|
||||
|
||||
Reference in New Issue
Block a user