backend-x11: fix pixman output state creation

Pixman output state creation requires a valid pixel format to be set for
weston_output_update_capture_info().

Fixes: c67773bc5c ("pixman-renderer: use pixel_format_info instead of pixman_format_code_t")
Signed-off-by: Philipp Zabel <philipp.zabel@gmail.com>
This commit is contained in:
Philipp Zabel 2023-01-29 13:38:11 +01:00 committed by Marius Vlad
parent 2914f28fd1
commit 918ec64f6a

View File

@ -1040,6 +1040,7 @@ x11_output_enable(struct weston_output *base)
.width = mode->width,
.height = mode->height
},
.format = pixel_format_get_info_by_pixman(PIXMAN_x8r8g8b8)
};
if (x11_output_init_shm(b, output,
mode->width, mode->height) < 0) {