From 83adb2a864af2f2947063d03005482ccade6383c Mon Sep 17 00:00:00 2001 From: "Owen W. Taylor" Date: Sat, 26 Jul 2014 16:45:28 +0200 Subject: [PATCH] clutter.paintCompletedTimestamp: cogl_flush() before glFinish() Calling glFinish() doesn't give us a reliable timestamp unless we flush Cogl rendering to GL first. --- src/shell-global.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/shell-global.c b/src/shell-global.c index bf38e7d98..8a5c9f3e1 100644 --- a/src/shell-global.c +++ b/src/shell-global.c @@ -834,6 +834,7 @@ global_stage_after_paint (ClutterStage *stage, if (!finish) load_gl_symbol ("glFinish", (void **)&finish); + cogl_flush (); finish (); shell_perf_log_event (shell_perf_log_get_default (),