From 21124ec80ad79d5b0b2b8d39f856f6c5608739cc Mon Sep 17 00:00:00 2001 From: twinaphex Date: Thu, 19 Nov 2015 15:00:12 +0100 Subject: [PATCH] (GLX) Simplification --- gfx/drivers_context/glx_ctx.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/gfx/drivers_context/glx_ctx.c b/gfx/drivers_context/glx_ctx.c index 229abff3f1..ee8c350141 100644 --- a/gfx/drivers_context/glx_ctx.c +++ b/gfx/drivers_context/glx_ctx.c @@ -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,