forked from enlightenment/efl
Evas: EGL-GL backends. Call eglReleaseThread() upon shutdown
Call proper cleanup code upon terminating egl use.
This commit is contained in:
parent
a01ba5718d
commit
56e71e05bb
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue