render: use DRM formats in wlr_renderer_read_pixels

This commit is contained in:
Simon Ser 2021-02-16 19:34:02 +01:00
parent 00bf6674b3
commit b54ef3372d
6 changed files with 9 additions and 8 deletions

View file

@ -427,7 +427,7 @@ static bool output_cursor_to_picture(struct wlr_x11_output *output,
wlr_renderer_end(x11->renderer);
bool result = wlr_renderer_read_pixels(
x11->renderer, WL_SHM_FORMAT_ARGB8888, NULL,
x11->renderer, DRM_FORMAT_ARGB8888, NULL,
width * 4, width, height, 0, 0, 0, 0,
data);