aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Orzechowski <orzechowski.alexander@gmail.com>2022-08-22 14:45:30 -0400
committerAlexander Orzechowski <orzechowski.alexander@gmail.com>2022-08-22 14:46:41 -0400
commitd3cb6b73a2733d8457a8be2593a42942b36b77e2 (patch)
tree81593a189dc58e0ccf92cc8c949985a1e8b6d713
parent8bd7170fd95aa0753dc859457808d7f7f81d560d (diff)
wlr_scene: Initialize region32 before trying to use it
-rw-r--r--types/scene/wlr_scene.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/types/scene/wlr_scene.c b/types/scene/wlr_scene.c
index 7541affc..102e9e3a 100644
--- a/types/scene/wlr_scene.c
+++ b/types/scene/wlr_scene.c
@@ -1497,6 +1497,7 @@ bool wlr_scene_output_commit(struct wlr_scene_output *scene_output) {
wlr_renderer_begin(renderer, output->width, output->height);
pixman_region32_t background;
+ pixman_region32_init(&background);
pixman_region32_copy(&background, &damage);
// Cull areas of the background that are occluded by opaque regions of