gl-renderer: Stop reading presentation clock without shaders to time
Stop reading the presentation clock if the return value is never used. Signed-off-by: Philipp Zabel <philipp.zabel@gmail.com>
This commit is contained in:
parent
1953931482
commit
51d23a409a
@ -428,7 +428,8 @@ gl_shader_scope_new_subscription(struct weston_log_subscription *subs,
|
||||
int count = 0;
|
||||
char *desc;
|
||||
|
||||
weston_compositor_read_presentation_clock(gr->compositor, &now);
|
||||
if (!wl_list_empty(&gr->shader_list))
|
||||
weston_compositor_read_presentation_clock(gr->compositor, &now);
|
||||
|
||||
weston_log_subscription_printf(subs,
|
||||
"Vertex shader body:\n"
|
||||
|
Loading…
Reference in New Issue
Block a user