mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2024-11-28 18:12:30 +00:00
wlr_scene: Initialize region32 before trying to use it
This commit is contained in:
parent
8bd7170fd9
commit
d3cb6b73a2
@ -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 New Issue
Block a user