forked from enlightenment/efl
evas/wayland_egl: 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 wayland_egl.
This commit is contained in:
parent
9bf1f44fb3
commit
5d053bf19b
|
@ -227,12 +227,7 @@ eng_window_use(Evas_GL_Wl_Window *gw)
|
|||
|
||||
if (_evas_gl_wl_window)
|
||||
{
|
||||
if ((eglGetCurrentContext() !=
|
||||
_evas_gl_wl_window->egl_context[0]) ||
|
||||
(eglGetCurrentSurface(EGL_READ) !=
|
||||
_evas_gl_wl_window->egl_surface[0]) ||
|
||||
(eglGetCurrentSurface(EGL_DRAW) !=
|
||||
_evas_gl_wl_window->egl_surface[0]))
|
||||
if (eglGetCurrentContext() != _evas_gl_wl_window->egl_context[0])
|
||||
force = EINA_TRUE;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue