Set g_egl_hw_ctx to NULL in egl_create_context

This commit is contained in:
twinaphex 2015-12-03 22:13:03 +01:00
parent 584e0c5110
commit 66721e8902

View File

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