(GLX) Simplification
This commit is contained in:
parent
7c9f357c1b
commit
21124ec80a
|
@ -593,9 +593,7 @@ static void gfx_ctx_glx_bind_hw_render(void *data, bool enable)
|
|||
|
||||
glx->g_use_hw_ctx = enable;
|
||||
|
||||
if (!g_x11_dpy)
|
||||
return;
|
||||
if (!glx->g_glx_win)
|
||||
if (!g_x11_dpy || !glx->g_glx_win)
|
||||
return;
|
||||
|
||||
glXMakeContextCurrent(g_x11_dpy, glx->g_glx_win,
|
||||
|
|
Loading…
Reference in New Issue