diff options
-rw-r--r-- | include/wlr/render/interface.h | 2 | ||||
-rw-r--r-- | render/gles2/renderer.c | 2 | ||||
-rw-r--r-- | render/pixman/renderer.c | 2 | ||||
-rw-r--r-- | render/wlr_renderer.c | 2 |
4 files changed, 4 insertions, 4 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); }; diff --git a/render/gles2/renderer.c b/render/gles2/renderer.c index 0770993e..458d172f 100644 --- a/render/gles2/renderer.c +++ b/render/gles2/renderer.c @@ -524,7 +524,7 @@ static int gles2_get_drm_fd(struct wlr_renderer *wlr_renderer) { return renderer->drm_fd; } -static uint32_t gles2_get_render_buffer_caps(void) { +static uint32_t gles2_get_render_buffer_caps(struct wlr_renderer *wlr_renderer) { return WLR_BUFFER_CAP_DMABUF; } diff --git a/render/pixman/renderer.c b/render/pixman/renderer.c index 9586d403..85df25a0 100644 --- a/render/pixman/renderer.c +++ b/render/pixman/renderer.c @@ -510,7 +510,7 @@ static bool pixman_read_pixels(struct wlr_renderer *wlr_renderer, return true; } -static uint32_t pixman_get_render_buffer_caps(void) { +static uint32_t pixman_get_render_buffer_caps(struct wlr_renderer *renderer) { return WLR_BUFFER_CAP_DATA_PTR; } 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, |