x11: don't try to make a NULL GL context current when we already did that.

Ryan C. Gordon 2017-09-01 14:00:11 -04:00
parent 4649ac463c
commit a3dda100f4
1 changed files with 3 additions and 1 deletions

View File

@ -452,8 +452,10 @@ X11_GL_InitExtensions(_THIS)
if (context) {
_this->gl_data->glXMakeCurrent(display, None, NULL);
_this->gl_data->glXDestroyContext(display, context);
if (current_context) {
_this->gl_data->glXMakeCurrent(display, w, current_context);
}
}
X11_XDestroyWindow(display, w);
X11_PumpEvents(_this);