mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-22 12:55:58 +01:00
bugfix: fix cursor software rendering fallback
wlr_surface_attach_pixels() expects a wl_shm_format but a GL format was given. This caused a bug where software rendering of the cursor would fail when no pixel format can be found.
This commit is contained in:
parent
13f3c69ec6
commit
a43016b8e2
1 changed files with 1 additions and 1 deletions
|
@ -206,7 +206,7 @@ bool wlr_output_set_cursor(struct wlr_output *output,
|
|||
output->cursor.texture = wlr_render_surface_init(output->cursor.renderer);
|
||||
}
|
||||
|
||||
wlr_surface_attach_pixels(output->cursor.texture, GL_RGBA,
|
||||
wlr_surface_attach_pixels(output->cursor.texture, WL_SHM_FORMAT_XBGR8888,
|
||||
stride, width, height, buf);
|
||||
|
||||
return true;
|
||||
|
|
Loading…
Reference in a new issue