clutter-stage-egl.c: Don't call eglWait*()
authorNeil Roberts <neil@linux.intel.com>
Tue, 18 May 2010 15:51:46 +0000 (16:51 +0100)
committerNeil Roberts <neil@linux.intel.com>
Tue, 18 May 2010 15:51:46 +0000 (16:51 +0100)
According to the docs, eglSwapBuffers performs an implicit glFlush
before swapping so there should be no need to wait.

clutter/eglx/clutter-stage-egl.c

index 720be5a..667e6be 100644 (file)
@@ -229,10 +229,8 @@ clutter_stage_egl_redraw (ClutterStageEGL *stage_egl,
   g_assert (CLUTTER_IS_STAGE_EGL (impl));
   stage_egl = CLUTTER_STAGE_EGL (impl);
 
-  eglWaitNative (EGL_CORE_NATIVE_ENGINE);
   clutter_actor_paint (CLUTTER_ACTOR (stage_x11->wrapper));
   cogl_flush ();
 
-  eglWaitGL ();
   eglSwapBuffers (backend_egl->edpy, stage_egl->egl_surface);
 }