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:
parent
4305137b7d
commit
43503a8b99
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue