Set g_egl_inited to false after egl_destroy

This commit is contained in:
twinaphex 2015-11-21 09:39:25 +01:00
parent efa673c7b0
commit b69caea6c1
3 changed files with 1 additions and 3 deletions

View File

@ -112,6 +112,7 @@ void egl_destroy(void *data)
g_egl_config = 0;
g_egl_quit = 0;
g_egl_api = GFX_CTX_NONE;
g_egl_inited = false;
}
void egl_bind_hw_render(void *data, bool enable)

View File

@ -191,8 +191,6 @@ static bool gfx_ctx_emscripten_bind_api(void *data,
static void gfx_ctx_emscripten_destroy(void *data)
{
egl_destroy(data);
g_egl_inited = false;
}
static void gfx_ctx_emscripten_input_driver(void *data,

View File

@ -79,7 +79,6 @@ static void gfx_ctx_xegl_destroy(void *data)
/* Do not close g_x11_dpy. We'll keep one for the entire application
* lifecycle to work-around nVidia EGL limitations.
*/
g_egl_inited = false;
}
static void gfx_ctx_xegl_set_resize(void *data,