From e7055b484085765bb4872ffbe3ccce18d16a129b Mon Sep 17 00:00:00 2001 From: Alexander Orzechowski Date: Thu, 30 Nov 2023 19:56:41 -0500 Subject: render/gles2: Implement texture_read_pixels Also get rid of gles2_texture.owns_texture. We only use the tex/fbo --- include/render/gles2.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'include/render') diff --git a/include/render/gles2.h b/include/render/gles2.h index dffd2059..c4540a39 100644 --- a/include/render/gles2.h +++ b/include/render/gles2.h @@ -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; -- cgit v1.2.3