From 66721e8902044f4360f3e68bd4f0cc3c5c4382c8 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Thu, 3 Dec 2015 22:13:03 +0100 Subject: [PATCH] Set g_egl_hw_ctx to NULL in egl_create_context --- gfx/common/egl_common.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gfx/common/egl_common.c b/gfx/common/egl_common.c index 1ed426e61c..c21d0f5107 100644 --- a/gfx/common/egl_common.c +++ b/gfx/common/egl_common.c @@ -212,8 +212,9 @@ bool egl_init_context(NativeDisplayType display, bool egl_create_context(EGLint *egl_attribs) { - g_egl_ctx = eglCreateContext(g_egl_dpy, g_egl_config, EGL_NO_CONTEXT, + g_egl_ctx = eglCreateContext(g_egl_dpy, g_egl_config, EGL_NO_CONTEXT, egl_attribs); + g_egl_hw_ctx = NULL; if (g_egl_ctx == EGL_NO_CONTEXT) return false;