mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-12-22 09:59:48 +01:00
render: relax stride check in wlr_texture_from_pixels
Some formats have a byte-per-pixel lower than 1. Let's not encode an arbitrary limitation into the wlr_renderer API.
This commit is contained in:
parent
f73c04b801
commit
beae3018cb
1 changed files with 1 additions and 1 deletions
|
@ -25,7 +25,7 @@ struct wlr_texture *wlr_texture_from_pixels(struct wlr_renderer *renderer,
|
|||
const void *data) {
|
||||
assert(width > 0);
|
||||
assert(height > 0);
|
||||
assert(stride >= width);
|
||||
assert(stride > 0);
|
||||
assert(data);
|
||||
return renderer->impl->texture_from_pixels(renderer, fmt, stride, width,
|
||||
height, data);
|
||||
|
|
Loading…
Reference in a new issue