diff options
author | Simon Ser <contact@emersion.fr> | 2021-06-08 18:57:15 +0200 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2021-06-09 16:41:03 +0200 |
commit | 280615490002d1a0ae3f6c3a3cd7056c95e91df6 (patch) | |
tree | dfb343c0f9695e8b202116af8af686fda6d83fee /render/wlr_renderer.c | |
parent | b2f6db3533f2aff20986ee33ed6364d8bd4553bb (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 'render/wlr_renderer.c')
-rw-r--r-- | render/wlr_renderer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/render/wlr_renderer.c b/render/wlr_renderer.c index 0f8976dd..f661d8d0 100644 --- a/render/wlr_renderer.c +++ b/render/wlr_renderer.c @@ -193,7 +193,7 @@ const struct wlr_drm_format_set *wlr_renderer_get_render_formats( } uint32_t renderer_get_render_buffer_caps(struct wlr_renderer *r) { - return r->impl->get_render_buffer_caps(); + return r->impl->get_render_buffer_caps(r); } bool wlr_renderer_read_pixels(struct wlr_renderer *r, uint32_t fmt, |