Evas: EGL-GL backends. Call eglReleaseThread() upon shutdown

Call proper cleanup code upon terminating egl use.
This commit is contained in:
Sung W. Park 2013-10-14 14:33:25 +09:00
parent a01ba5718d
commit 56e71e05bb
2 changed files with 2 additions and 0 deletions

View File

@ -437,6 +437,7 @@ eng_window_free(Evas_GL_X11_Window *gw)
{
if (context) eglDestroyContext(gw->egl_disp, context);
eglTerminate(gw->egl_disp);
eglReleaseThread();
context = EGL_NO_CONTEXT;
}
#else

View File

@ -212,6 +212,7 @@ eng_window_free(Evas_GL_Wl_Window *gw)
{
if (context) eglDestroyContext(gw->egl_disp, context);
eglTerminate(gw->egl_disp);
eglReleaseThread();
context = EGL_NO_CONTEXT;
}