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:
Philipp Zabel 2023-08-01 21:59:31 +02:00 committed by Marius Vlad
parent 1953931482
commit 51d23a409a

View file

@ -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"