aboutsummaryrefslogtreecommitdiff
path: root/include/render/gles2.h
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2018-03-20 13:06:53 +0100
committerGuido Günther <agx@sigxcpu.org>2018-03-20 14:30:30 +0100
commitb3cb5a36c7230070419afc71704800b380549a04 (patch)
treec92da239df18db952a3c34da3db79be58a2abddf /include/render/gles2.h
parent453516a6214bd8f6548db932139a8ed116eb652e (diff)
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.
Diffstat (limited to 'include/render/gles2.h')
-rw-r--r--include/render/gles2.h1
1 files changed, 1 insertions, 0 deletions
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 {