aboutsummaryrefslogtreecommitdiff
path: root/include/render
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2021-08-11 10:00:50 +0200
committerSimon Ser <contact@emersion.fr>2021-08-12 10:22:19 +0200
commitee1156b62b74303b47eb86d71379d57a98e29035 (patch)
treec688ce9fcc0fbe37e66e7bdc0fd4e9aa1c9ef508 /include/render
parent93964012e66116e66a2efb2ef4d395f1141b9f13 (diff)
render/gles2: make wlr_gles2_buffer an addon
Saves us from walking a list.
Diffstat (limited to 'include/render')
-rw-r--r--include/render/gles2.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/render/gles2.h b/include/render/gles2.h
index cc5a2808..84e8f0ce 100644
--- a/include/render/gles2.h
+++ b/include/render/gles2.h
@@ -12,6 +12,7 @@
#include <wlr/render/interface.h>
#include <wlr/render/wlr_renderer.h>
#include <wlr/render/wlr_texture.h>
+#include <wlr/util/addon.h>
#include <wlr/util/log.h>
struct wlr_gles2_pixel_format {
@@ -84,7 +85,7 @@ struct wlr_gles2_buffer {
GLuint rbo;
GLuint fbo;
- struct wl_listener buffer_destroy;
+ struct wlr_addon addon;
};
struct wlr_gles2_texture {