From b3cb5a36c7230070419afc71704800b380549a04 Mon Sep 17 00:00:00 2001 From: Guido Günther Date: Tue, 20 Mar 2018 13:06:53 +0100 Subject: gles2: allow to specify texture target type Allow to set the texture target type when generating/binding the texture. This allows us to attach the texture type to the texture so we don't have to keep the logic elsewhere. --- include/render/gles2.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/render') diff --git a/include/render/gles2.h b/include/render/gles2.h index e8124050..0a4fb49f 100644 --- a/include/render/gles2.h +++ b/include/render/gles2.h @@ -37,6 +37,7 @@ struct wlr_gles2_texture { GLuint tex_id; const struct pixel_format *pixel_format; EGLImageKHR image; + GLenum target; }; struct shaders { -- cgit v1.2.3