aboutsummaryrefslogtreecommitdiff
path: root/include/render
diff options
context:
space:
mode:
Diffstat (limited to 'include/render')
-rw-r--r--include/render/gles2.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/include/render/gles2.h b/include/render/gles2.h
index a64aa77c..2eff0aa5 100644
--- a/include/render/gles2.h
+++ b/include/render/gles2.h
@@ -72,9 +72,24 @@ struct wlr_gles2_renderer {
struct wlr_gles2_tex_shader tex_ext;
} shaders;
+ struct wl_list buffers; // wlr_gles2_buffer.link
+
+ struct wlr_gles2_buffer *current_buffer;
uint32_t viewport_width, viewport_height;
};
+struct wlr_gles2_buffer {
+ struct wlr_buffer *buffer;
+ struct wlr_gles2_renderer *renderer;
+ struct wl_list link; // wlr_gles2_renderer.buffers
+
+ EGLImageKHR image;
+ GLuint rbo;
+ GLuint fbo;
+
+ struct wl_listener buffer_destroy;
+};
+
struct wlr_gles2_texture {
struct wlr_texture wlr_texture;
struct wlr_gles2_renderer *renderer;