From cb03a41a3b73e35b3bd6295fc413900874d611bb Mon Sep 17 00:00:00 2001 From: nyorain Date: Tue, 16 Oct 2018 09:35:28 +0200 Subject: Use enum wl_shm_format for gles2 texture formats Also rephrase the write_pixels comment. --- render/gles2/texture.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'render') 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? -- cgit v1.2.3