aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-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;