aboutsummaryrefslogtreecommitdiff
path: root/render/wlr_texture.c
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2018-03-22 19:59:15 -0400
committerGitHub <noreply@github.com>2018-03-22 19:59:15 -0400
commit77d3be66eaabca4309794536984c54a5e94e9eb5 (patch)
tree50bde81f0a3b4a9a66f1e029823c391cb7345657 /render/wlr_texture.c
parentef3769851f1b8586951cdf3ae71c3529f95a8fd6 (diff)
parenta854c2f24677595110859373c75eb8ec5e50f91e (diff)
Merge pull request #738 from emersion/gles2-renderer-redesign
Redesign GLES2 renderer
Diffstat (limited to 'render/wlr_texture.c')
-rw-r--r--render/wlr_texture.c6
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,