diff options
author | Simon Ser <contact@emersion.fr> | 2021-08-11 10:00:50 +0200 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2021-08-12 10:22:19 +0200 |
commit | ee1156b62b74303b47eb86d71379d57a98e29035 (patch) | |
tree | c688ce9fcc0fbe37e66e7bdc0fd4e9aa1c9ef508 /include | |
parent | 93964012e66116e66a2efb2ef4d395f1141b9f13 (diff) |
render/gles2: make wlr_gles2_buffer an addon
Saves us from walking a list.
Diffstat (limited to 'include')
-rw-r--r-- | include/render/gles2.h | 3 |
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 { |