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.
This commit is contained in:
Guido Günther 2018-03-20 13:06:53 +01:00
parent 453516a621
commit b3cb5a36c7
2 changed files with 12 additions and 10 deletions

View file

@ -37,6 +37,7 @@ struct wlr_gles2_texture {
GLuint tex_id;
const struct pixel_format *pixel_format;
EGLImageKHR image;
GLenum target;
};
struct shaders {