evas: symetric lock/unlock calls in gl_cocoa backend.
authorNicolas Aguirre <aguirre.nicolas@gmail.com>
Thu, 12 Feb 2015 07:29:40 +0000 (08:29 +0100)
committerCedric BAIL <cedric@osg.samsung.com>
Thu, 12 Mar 2015 06:43:59 +0000 (07:43 +0100)
this code add symetric calls to lock and unlock focus view

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
src/modules/evas/engines/gl_cocoa/evas_engine.c

index e0a0111..5da4743 100644 (file)
@@ -200,6 +200,7 @@ eng_output_redraws_rect_add(void *data, int x, int y, int w, int h)
        if ((y + h - 1) > re->win->draw.y2) re->win->draw.y2 = y + h - 1;
      }
    re->win->draw.redraw = 1;
+   eng_window_unlock_focus(re->win);
 }
 
 static void
@@ -299,7 +300,7 @@ eng_output_flush(void *data, Evas_Render_Mode render_mode)
 #ifdef VSYNC_TO_SCREEN
    eng_window_vsync_set(1);
 #endif
-
+   eng_window_lock_focus(re->win);
    eng_window_swap_buffers(re->win);
    eng_window_unlock_focus(re->win);
 }