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:
parent
5918faddf7
commit
83adb2a864
@ -834,6 +834,7 @@ global_stage_after_paint (ClutterStage *stage,
|
|||||||
if (!finish)
|
if (!finish)
|
||||||
load_gl_symbol ("glFinish", (void **)&finish);
|
load_gl_symbol ("glFinish", (void **)&finish);
|
||||||
|
|
||||||
|
cogl_flush ();
|
||||||
finish ();
|
finish ();
|
||||||
|
|
||||||
shell_perf_log_event (shell_perf_log_get_default (),
|
shell_perf_log_event (shell_perf_log_get_default (),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user