From dd7d556916124fe6dfa86267c3ecfc88482b996a Mon Sep 17 00:00:00 2001 From: Christopher Michael Date: Thu, 12 Jan 2012 06:06:07 +0000 Subject: [PATCH] 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 --- legacy/evas/src/modules/engines/gl_x11/evas_x_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/legacy/evas/src/modules/engines/gl_x11/evas_x_main.c b/legacy/evas/src/modules/engines/gl_x11/evas_x_main.c index 323c976811..72b60f250c 100644 --- a/legacy/evas/src/modules/engines/gl_x11/evas_x_main.c +++ b/legacy/evas/src/modules/engines/gl_x11/evas_x_main.c @@ -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)