diff options
author | nyorain <nyorain@gmail.com> | 2018-10-16 09:35:28 +0200 |
---|---|---|
committer | nyorain <nyorain@gmail.com> | 2018-10-16 09:35:28 +0200 |
commit | cb03a41a3b73e35b3bd6295fc413900874d611bb (patch) | |
tree | 052c13c8956edf79d4a29afbf5f0c3fc3c214198 /render | |
parent | cd28637187149a0f90429e63408bacd98033e59f (diff) |
Use enum wl_shm_format for gles2 texture formats
Also rephrase the write_pixels comment.
Diffstat (limited to 'render')
-rw-r--r-- | render/gles2/texture.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/render/gles2/texture.c b/render/gles2/texture.c index d32cd458..d035841e 100644 --- a/render/gles2/texture.c +++ b/render/gles2/texture.c @@ -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? |