aboutsummaryrefslogtreecommitdiff
path: root/include/wlr
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2021-06-08 18:57:15 +0200
committerSimon Ser <contact@emersion.fr>2021-06-09 16:41:03 +0200
commit280615490002d1a0ae3f6c3a3cd7056c95e91df6 (patch)
treedfb343c0f9695e8b202116af8af686fda6d83fee /include/wlr
parentb2f6db3533f2aff20986ee33ed6364d8bd4553bb (diff)
render: add missing arg to wlr_renderer_impl.get_buffer_caps
The types of buffers supported by the renderer might depend on the renderer's instance. For instance, a renderer might only support DMA-BUFs if the necessary EGL extensions are available. Pass the wlr_renderer to get_buffer_caps so that the renderer can perform such checks. Fixes: 982498fab3c4 ("render: introduce renderer_get_render_buffer_caps")
Diffstat (limited to 'include/wlr')
-rw-r--r--include/wlr/render/interface.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/wlr/render/interface.h b/include/wlr/render/interface.h
index 251154d8..b07c7c6f 100644
--- a/include/wlr/render/interface.h
+++ b/include/wlr/render/interface.h
@@ -56,7 +56,7 @@ struct wlr_renderer_impl {
bool (*init_wl_display)(struct wlr_renderer *renderer,
struct wl_display *wl_display);
int (*get_drm_fd)(struct wlr_renderer *renderer);
- uint32_t (*get_render_buffer_caps)(void);
+ uint32_t (*get_render_buffer_caps)(struct wlr_renderer *renderer);
struct wlr_texture *(*texture_from_buffer)(struct wlr_renderer *renderer,
struct wlr_buffer *buffer);
};