Evas (gl_x11): We cannot call eglMakeCurrent if we have already called

eglTerminate prior (eg: eglTerminate was in the wrong place here).



SVN revision: 67119
This commit is contained in:
Christopher Michael 2012-01-12 06:06:07 +00:00
parent b9ec187bb9
commit dd7d556916
1 changed files with 1 additions and 1 deletions

View File

@ -534,10 +534,10 @@ eng_window_free(Evas_GL_X11_Window *gw)
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)