mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-31 22:25:21 -04:00
Use enum wl_shm_format for gles2 texture formats
Also rephrase the write_pixels comment.
This commit is contained in:
parent
cd28637187
commit
cb03a41a3b
3 changed files with 7 additions and 8 deletions
|
|
@ -55,8 +55,8 @@ static bool gles2_texture_write_pixels(struct wlr_texture *wlr_texture,
|
|||
return false;
|
||||
}
|
||||
|
||||
const struct wlr_gles2_pixel_format *fmt = get_gles2_format_from_wl(
|
||||
texture->wl_format);
|
||||
const struct wlr_gles2_pixel_format *fmt =
|
||||
get_gles2_format_from_wl(texture->wl_format);
|
||||
assert(fmt);
|
||||
|
||||
// TODO: what if the unpack subimage extension isn't supported?
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue