summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Orzechowski <[email protected]>2022-08-22 14:45:30 -0400
committerAlexander Orzechowski <[email protected]>2022-08-22 14:46:41 -0400
commit304e0524e9cb2298acad1673656dd5c266c13817 (patch)
treed1a4076ea4f422122e187e1bb23092947b8b3328
parent682649f37b492a7f016890adaa41e5bf7682748a (diff)
wlr_scene: Initialize region32 before trying to use it
-rw-r--r--wlr_scene.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/wlr_scene.c b/wlr_scene.c
index 7541aff..102e9e3 100644
--- a/wlr_scene.c
+++ b/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