render/gles2: Implement texture_read_pixels

Also get rid of gles2_texture.owns_texture. We only use the tex/fbo
This commit is contained in:
Alexander Orzechowski 2023-11-30 19:56:41 -05:00
parent 01bd098166
commit e7055b4840
2 changed files with 110 additions and 5 deletions

View file

@ -121,8 +121,12 @@ struct wlr_gles2_texture {
struct wl_list link; // wlr_gles2_renderer.textures
GLenum target;
bool owns_tex;
// If this texture is imported from a buffer, the texture is does not own
// these states. These cannot be destroyed along with the texture in this
// case.
GLuint tex;
GLuint fbo;
bool has_alpha;