evas/gl_x11: eng_window_use will not always force makecurrent.

If the egl_surface is different from the current one, it may be that the
it has been destroyed already. Removing the below check (and just
checking for different contexts) will avoid calling makecurrent when
destroying a window.  That was always failing anyway.

Should fix https://phab.enlightenment.org/T311 for gl_x11 too.
This commit is contained in:
Rafael Antognolli 2013-08-29 17:25:40 -03:00
parent ebdc7a9952
commit f69cde8107
1 changed files with 1 additions and 6 deletions

View File

@ -508,12 +508,7 @@ eng_window_use(Evas_GL_X11_Window *gw)
#ifdef GL_GLES
if (_evas_gl_x11_window)
{
if ((eglGetCurrentContext() !=
_evas_gl_x11_window->egl_context[0]) ||
(eglGetCurrentSurface(EGL_READ) !=
_evas_gl_x11_window->egl_surface[0]) ||
(eglGetCurrentSurface(EGL_DRAW) !=
_evas_gl_x11_window->egl_surface[0]))
if (eglGetCurrentContext() != _evas_gl_x11_window->egl_context[0])
force_use = EINA_TRUE;
}
#else