x11: don't try to make a NULL GL context current when we already did that.
parent
4649ac463c
commit
a3dda100f4
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue