mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-05-07 06:08:05 +02:00
renderer-gl: Don't compute rects if log scope is not enabled
Signed-off-by: Marius Vlad <marius.vlad@collabora.com>
This commit is contained in:
parent
64ef093397
commit
9a708994d5
1 changed files with 2 additions and 2 deletions
|
|
@ -419,12 +419,12 @@ gl_log_paint_node_bbox_and_region(struct gl_renderer *gr, const char *str,
|
|||
int32_t box_x, box_y;
|
||||
uint32_t box_width, box_height;
|
||||
int n_rects = 0;
|
||||
const pixman_box32_t *rects =
|
||||
pixman_region32_rectangles(damage, &n_rects);
|
||||
const pixman_box32_t *rects;
|
||||
|
||||
if (!weston_log_scope_is_enabled(gr->paint_node_scope))
|
||||
return;
|
||||
|
||||
rects = pixman_region32_rectangles(damage, &n_rects);
|
||||
box = pixman_region32_extents(damage);
|
||||
|
||||
box_x = box->x1;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue