x11: don't try to make a NULL GL context current when we already did that.
This commit is contained in:
parent
bb79b54f02
commit
736a5a3ed0
1 changed files with 3 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue