mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2025-01-31 00:09:19 +01:00
x11: don't try to make a NULL GL context current when we already did that.
This commit is contained in:
parent
4649ac463c
commit
a3dda100f4
@ -452,8 +452,10 @@ X11_GL_InitExtensions(_THIS)
|
|||||||
if (context) {
|
if (context) {
|
||||||
_this->gl_data->glXMakeCurrent(display, None, NULL);
|
_this->gl_data->glXMakeCurrent(display, None, NULL);
|
||||||
_this->gl_data->glXDestroyContext(display, context);
|
_this->gl_data->glXDestroyContext(display, context);
|
||||||
|
if (current_context) {
|
||||||
_this->gl_data->glXMakeCurrent(display, w, current_context);
|
_this->gl_data->glXMakeCurrent(display, w, current_context);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
X11_XDestroyWindow(display, w);
|
X11_XDestroyWindow(display, w);
|
||||||
X11_PumpEvents(_this);
|
X11_PumpEvents(_this);
|
||||||
|
Loading…
Reference in New Issue
Block a user