Commit 43503a8b authored by Sam Lantinga's avatar Sam Lantinga

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...
parent 4305137b
...@@ -3271,7 +3271,7 @@ SDL_GL_SwapWindow(SDL_Window * window) ...@@ -3271,7 +3271,7 @@ SDL_GL_SwapWindow(SDL_Window * window)
void void
SDL_GL_DeleteContext(SDL_GLContext context) SDL_GL_DeleteContext(SDL_GLContext context)
{ {
if (!_this || !context) { if (!_this || !_this->gl_data || !context) {
return; return;
} }
_this->GL_MakeCurrent(_this, NULL, NULL); _this->GL_MakeCurrent(_this, NULL, NULL);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment