evas: symetric lock/unlock calls in gl_cocoa backend.

this code add symetric calls to lock and unlock focus view

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
This commit is contained in:
Nicolas Aguirre 2015-02-12 08:29:40 +01:00 committed by Cedric BAIL
parent 2b4faaaeac
commit cf730014cf
1 changed files with 2 additions and 1 deletions

View 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);
}