eglTerminate prior (eg: eglTerminate was in the wrong place here).
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/evas@67119
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
if (ref == 0)
{
if (context) eglDestroyContext(gw->egl_disp, context);
- eglTerminate(gw->egl_disp);
context = EGL_NO_CONTEXT;
}
eglMakeCurrent(gw->egl_disp, EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT);
+ if (ref == 0) eglTerminate(gw->egl_disp);
#else
if (gw->glxwin) glXDestroyWindow(gw->disp, gw->glxwin);
if (ref == 0)