Use enum wl_shm_format for gles2 texture formats

Also rephrase the write_pixels comment.
This commit is contained in:
nyorain 2018-10-16 09:35:28 +02:00
parent cd28637187
commit cb03a41a3b
3 changed files with 7 additions and 8 deletions

View file

@ -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?