diff options
author | Alexander Orzechowski <alex@ozal.ski> | 2023-11-30 19:56:41 -0500 |
---|---|---|
committer | Alexander Orzechowski <alex@ozal.ski> | 2023-11-30 19:56:41 -0500 |
commit | e7055b484085765bb4872ffbe3ccce18d16a129b (patch) | |
tree | 3beb55d5cee02454ee21dd51c20caae3c828d085 /include/render | |
parent | 01bd098166fae861e031f365b0974eddf0b3d94f (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.h | 6 |
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; |