From 368c35b96b3dc92d857308f88ec95c943534ded0 Mon Sep 17 00:00:00 2001 From: raster Date: Sat, 18 Sep 2010 13:49:56 +0000 Subject: [PATCH] be less agressive performance-wise but clear up some gl sync issues that have been lurking. git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/evas@52414 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/modules/engines/gl_x11/evas_engine.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/modules/engines/gl_x11/evas_engine.c b/src/modules/engines/gl_x11/evas_engine.c index 06d6fce..17ba3f0 100644 --- a/src/modules/engines/gl_x11/evas_engine.c +++ b/src/modules/engines/gl_x11/evas_engine.c @@ -592,7 +592,7 @@ eng_output_redraws_next_update_push(void *data, void *surface __UNUSED__, int x // printf("Error: eglWaitNative(EGL_CORE_NATIVE_ENGINE) fail.\n"); // } #else - glXWaitGL(); + glXWaitX(); #endif //x// printf("frame -> push\n"); } @@ -618,6 +618,7 @@ eng_output_flush(void *data) else eglSwapInterval(re->win->egl_disp, 0); eglSwapBuffers(re->win->egl_disp, re->win->egl_surface[0]); + eglWaitGL(); #ifdef FRAMECOUNT double t1 = get_time(); printf("%1.5f\n", t1 - t0); @@ -651,6 +652,7 @@ eng_output_flush(void *data) ) { glXSwapBuffers(re->win->disp, re->win->win); + glXWaitGL(); } else { -- 2.7.4