aboutsummaryrefslogtreecommitdiff
path: root/include/wlr/render
diff options
context:
space:
mode:
authorDominique Martinet <asmadeus@codewreck.org>2017-08-19 08:10:39 +0200
committerDominique Martinet <asmadeus@codewreck.org>2017-08-19 08:33:31 +0200
commitf24b3df980979d761bd59773f39d6d5f90d17913 (patch)
treeb54e0df3d2cf367bbb5d1e7ffe8556fcf7aa96ea /include/wlr/render
parent12782eabfe2bf688b15d612a0357e75f13c9ade7 (diff)
wlr renderer/texture: rename init to create when it does alloc
Diffstat (limited to 'include/wlr/render')
-rw-r--r--include/wlr/render/gles2.h2
-rw-r--r--include/wlr/render/interface.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/include/wlr/render/gles2.h b/include/wlr/render/gles2.h
index b368d6e1..4a944eb7 100644
--- a/include/wlr/render/gles2.h
+++ b/include/wlr/render/gles2.h
@@ -4,6 +4,6 @@
#include <wlr/backend.h>
struct wlr_egl;
-struct wlr_renderer *wlr_gles2_renderer_init(struct wlr_backend *backend);
+struct wlr_renderer *wlr_gles2_renderer_create(struct wlr_backend *backend);
#endif
diff --git a/include/wlr/render/interface.h b/include/wlr/render/interface.h
index f98c3bc2..c00e0701 100644
--- a/include/wlr/render/interface.h
+++ b/include/wlr/render/interface.h
@@ -14,7 +14,7 @@ struct wlr_renderer {
struct wlr_renderer_impl {
void (*begin)(struct wlr_renderer *renderer, struct wlr_output *output);
void (*end)(struct wlr_renderer *renderer);
- struct wlr_texture *(*texture_init)(struct wlr_renderer *renderer);
+ struct wlr_texture *(*texture_create)(struct wlr_renderer *renderer);
bool (*render_with_matrix)(struct wlr_renderer *renderer,
struct wlr_texture *texture, const float (*matrix)[16]);
void (*render_quad)(struct wlr_renderer *renderer,