antognolli pushed a commit to branch master.

commit 5d053bf19b14bcb910c7547c3bcfb05d7725ca57
Author: Rafael Antognolli <[email protected]>
Date:   Fri Aug 23 16:19:42 2013 -0300

    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.
---
 src/modules/evas/engines/wayland_egl/evas_wl_main.c | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/src/modules/evas/engines/wayland_egl/evas_wl_main.c 
b/src/modules/evas/engines/wayland_egl/evas_wl_main.c
index 00a84f8..7efbb41 100644
--- a/src/modules/evas/engines/wayland_egl/evas_wl_main.c
+++ b/src/modules/evas/engines/wayland_egl/evas_wl_main.c
@@ -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;
      }
 

-- 

------------------------------------------------------------------------------
Introducing Performance Central, a new site from SourceForge and 
AppDynamics. Performance Central is your source for news, insights, 
analysis and resources for efficient Application Performance Management. 
Visit us today!
http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk

Reply via email to