mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-05-07 11:58:03 +02:00
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
1 changed files with 2 additions and 1 deletions
|
|
@ -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…
Add table
Reference in a new issue