diff options
author | Simon Ser <contact@emersion.fr> | 2021-06-08 09:16:18 +0200 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2021-06-09 10:26:09 +0200 |
commit | b2f6db3533f2aff20986ee33ed6364d8bd4553bb (patch) | |
tree | 80c742f363ac49903b3de611a2f992a52106f674 /render/wlr_renderer.c | |
parent | c87c849ec6a166ea7472c5c87d02646dfc7151b4 (diff) |
render: drop wlr_ prefix from wlr_renderer_bind_buffer
Make it clear this function is a private wlroots API and will stay
that way.
Diffstat (limited to 'render/wlr_renderer.c')
-rw-r--r-- | render/wlr_renderer.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/render/wlr_renderer.c b/render/wlr_renderer.c index 4ff43139..0f8976dd 100644 --- a/render/wlr_renderer.c +++ b/render/wlr_renderer.c @@ -49,8 +49,7 @@ void wlr_renderer_destroy(struct wlr_renderer *r) { } } -bool wlr_renderer_bind_buffer(struct wlr_renderer *r, - struct wlr_buffer *buffer) { +bool renderer_bind_buffer(struct wlr_renderer *r, struct wlr_buffer *buffer) { assert(!r->rendering); if (!r->impl->bind_buffer) { return false; @@ -68,7 +67,7 @@ void wlr_renderer_begin(struct wlr_renderer *r, uint32_t width, uint32_t height) bool wlr_renderer_begin_with_buffer(struct wlr_renderer *r, struct wlr_buffer *buffer) { - if (!wlr_renderer_bind_buffer(r, buffer)) { + if (!renderer_bind_buffer(r, buffer)) { return false; } wlr_renderer_begin(r, buffer->width, buffer->height); @@ -86,7 +85,7 @@ void wlr_renderer_end(struct wlr_renderer *r) { r->rendering = false; if (r->rendering_with_buffer) { - wlr_renderer_bind_buffer(r, NULL); + renderer_bind_buffer(r, NULL); r->rendering_with_buffer = false; } } |