(GLX) Simplification

This commit is contained in:
twinaphex 2015-11-19 15:00:12 +01:00
parent 7c9f357c1b
commit 21124ec80a

View File

@ -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,