Fix wl_shm_format passed to wlr_texture_from_pixels

Fixes: 27fba3df43 ("render: use DRM formats in wlr_texture_from_pixels")
This commit is contained in:
Simon Ser 2021-02-23 17:36:32 +01:00
parent c2815fd44d
commit 675bc39658
4 changed files with 7 additions and 4 deletions

View file

@ -1044,7 +1044,7 @@ bool wlr_output_cursor_set_image(struct wlr_output_cursor *cursor,
cursor->enabled = false;
if (pixels != NULL) {
cursor->texture = wlr_texture_from_pixels(renderer,
WL_SHM_FORMAT_ARGB8888, stride, width, height, pixels);
DRM_FORMAT_ARGB8888, stride, width, height, pixels);
if (cursor->texture == NULL) {
return false;
}