aboutsummaryrefslogtreecommitdiff
path: root/include/render
diff options
context:
space:
mode:
authorAlexander Orzechowski <alex@ozal.ski>2023-11-30 19:56:41 -0500
committerAlexander Orzechowski <alex@ozal.ski>2023-11-30 19:56:41 -0500
commite7055b484085765bb4872ffbe3ccce18d16a129b (patch)
tree3beb55d5cee02454ee21dd51c20caae3c828d085 /include/render
parent01bd098166fae861e031f365b0974eddf0b3d94f (diff)
render/gles2: Implement texture_read_pixels
Also get rid of gles2_texture.owns_texture. We only use the tex/fbo
Diffstat (limited to 'include/render')
-rw-r--r--include/render/gles2.h6
1 files changed, 5 insertions, 1 deletions
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;