aboutsummaryrefslogtreecommitdiff
path: root/include/wlr
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2018-03-20 19:14:33 +0100
committeremersion <contact@emersion.fr>2018-03-20 19:14:33 +0100
commit95e86e675a7eef326958ab9047ff4ca0d0182cfc (patch)
treeb2fee8169b1320fc787276c882279e05ffdb119a /include/wlr
parentff2e08aa7481517d0bd4379ff0d0b51098f72064 (diff)
render/gles2: remove global state, use OpenGL debug extension
Diffstat (limited to 'include/wlr')
-rw-r--r--include/wlr/render/interface.h10
-rw-r--r--include/wlr/render/wlr_texture.h2
2 files changed, 5 insertions, 7 deletions
diff --git a/include/wlr/render/interface.h b/include/wlr/render/interface.h
index f0307230..da0aaec9 100644
--- a/include/wlr/render/interface.h
+++ b/include/wlr/render/interface.h
@@ -14,7 +14,7 @@
struct wlr_renderer_impl;
struct wlr_renderer {
- struct wlr_renderer_impl *impl;
+ const struct wlr_renderer_impl *impl;
};
struct wlr_renderer_impl {
@@ -44,7 +44,7 @@ struct wlr_renderer_impl {
};
void wlr_renderer_init(struct wlr_renderer *renderer,
- struct wlr_renderer_impl *impl);
+ const struct wlr_renderer_impl *impl);
struct wlr_texture_impl {
bool (*upload_pixels)(struct wlr_texture *texture,
@@ -65,14 +65,12 @@ struct wlr_texture_impl {
struct wl_resource *dmabuf_resource);
void (*get_buffer_size)(struct wlr_texture *texture,
struct wl_resource *resource, int *width, int *height);
- void (*bind)(struct wlr_texture *texture);
void (*destroy)(struct wlr_texture *texture);
};
void wlr_texture_init(struct wlr_texture *texture,
- struct wlr_texture_impl *impl);
-void wlr_texture_bind(struct wlr_texture *texture);
+ const struct wlr_texture_impl *impl);
void wlr_texture_get_buffer_size(struct wlr_texture *texture,
- struct wl_resource *resource, int *width, int *height);
+ struct wl_resource *resource, int *width, int *height);
#endif
diff --git a/include/wlr/render/wlr_texture.h b/include/wlr/render/wlr_texture.h
index 49aa93d7..095097e6 100644
--- a/include/wlr/render/wlr_texture.h
+++ b/include/wlr/render/wlr_texture.h
@@ -9,7 +9,7 @@
struct wlr_texture_impl;
struct wlr_texture {
- struct wlr_texture_impl *impl;
+ const struct wlr_texture_impl *impl;
bool valid;
uint32_t format;