clutter.paintCompletedTimestamp: cogl_flush() before glFinish()

Calling glFinish() doesn't give us a reliable timestamp unless we
flush Cogl rendering to GL first.
This commit is contained in:
Owen W. Taylor 2014-07-26 16:45:28 +02:00
parent 5918faddf7
commit 83adb2a864

View File

@ -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 (),