mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-02 09:01:38 -05:00
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:
parent
453516a621
commit
b3cb5a36c7
2 changed files with 12 additions and 10 deletions
|
|
@ -37,6 +37,7 @@ struct wlr_gles2_texture {
|
|||
GLuint tex_id;
|
||||
const struct pixel_format *pixel_format;
|
||||
EGLImageKHR image;
|
||||
GLenum target;
|
||||
};
|
||||
|
||||
struct shaders {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue