Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Fixed bug 1605 - SDL_DestroyWindow causes erroneous error message
Browse files Browse the repository at this point in the history
You can't pass a NULL window into SDL_GL_MakeCurrent()
  • Loading branch information
slouken committed Sep 28, 2012
1 parent 827b48c commit a7ad49a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/video/SDL_video.c
Expand Up @@ -1978,7 +1978,7 @@ SDL_DestroyWindow(SDL_Window * window)
/* make no context current if this is the current context window. */
if (window->flags & SDL_WINDOW_OPENGL) {
if (_this->current_glwin == window) {
SDL_GL_MakeCurrent(NULL, NULL);
SDL_GL_MakeCurrent(window, NULL);
}
}

Expand Down

0 comments on commit a7ad49a

Please sign in to comment.