mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-22 21:05:58 +01:00
wlr_scene: Initialize region32 before trying to use it
This commit is contained in:
parent
8bd7170fd9
commit
d3cb6b73a2
1 changed files with 1 additions and 0 deletions
|
@ -1497,6 +1497,7 @@ bool wlr_scene_output_commit(struct wlr_scene_output *scene_output) {
|
||||||
wlr_renderer_begin(renderer, output->width, output->height);
|
wlr_renderer_begin(renderer, output->width, output->height);
|
||||||
|
|
||||||
pixman_region32_t background;
|
pixman_region32_t background;
|
||||||
|
pixman_region32_init(&background);
|
||||||
pixman_region32_copy(&background, &damage);
|
pixman_region32_copy(&background, &damage);
|
||||||
|
|
||||||
// Cull areas of the background that are occluded by opaque regions of
|
// Cull areas of the background that are occluded by opaque regions of
|
||||||
|
|
Loading…
Reference in a new issue