Skip to content

Commit

Permalink
x11: don't try to make a NULL GL context current when we already did …
Browse files Browse the repository at this point in the history
…that.
  • Loading branch information
icculus committed Sep 1, 2017
1 parent 4649ac4 commit a3dda10
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/video/x11/SDL_x11opengl.c
Expand Up @@ -452,7 +452,9 @@ X11_GL_InitExtensions(_THIS)
if (context) {
_this->gl_data->glXMakeCurrent(display, None, NULL);
_this->gl_data->glXDestroyContext(display, context);
_this->gl_data->glXMakeCurrent(display, w, current_context);
if (current_context) {
_this->gl_data->glXMakeCurrent(display, w, current_context);
}
}

X11_XDestroyWindow(display, w);
Expand Down

0 comments on commit a3dda10

Please sign in to comment.