diff options
author | emersion <contact@emersion.fr> | 2018-03-20 19:14:33 +0100 |
---|---|---|
committer | emersion <contact@emersion.fr> | 2018-03-20 19:14:33 +0100 |
commit | 95e86e675a7eef326958ab9047ff4ca0d0182cfc (patch) | |
tree | b2fee8169b1320fc787276c882279e05ffdb119a /render/wlr_texture.c | |
parent | ff2e08aa7481517d0bd4379ff0d0b51098f72064 (diff) |
render/gles2: remove global state, use OpenGL debug extension
Diffstat (limited to 'render/wlr_texture.c')
-rw-r--r-- | render/wlr_texture.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/render/wlr_texture.c b/render/wlr_texture.c index a5d0abde..33c91822 100644 --- a/render/wlr_texture.c +++ b/render/wlr_texture.c @@ -4,7 +4,7 @@ #include <wlr/render/wlr_texture.h> void wlr_texture_init(struct wlr_texture *texture, - struct wlr_texture_impl *impl) { + const struct wlr_texture_impl *impl) { texture->impl = impl; wl_signal_init(&texture->destroy_signal); } @@ -17,10 +17,6 @@ void wlr_texture_destroy(struct wlr_texture *texture) { } } -void wlr_texture_bind(struct wlr_texture *texture) { - texture->impl->bind(texture); -} - bool wlr_texture_upload_pixels(struct wlr_texture *texture, uint32_t format, int stride, int width, int height, const unsigned char *pixels) { return texture->impl->upload_pixels(texture, format, stride, |