From 18adb43a44cbb31eeeb3d6845690d2cb5c9dc61b Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Tue, 29 Jun 2021 20:39:19 +0200 Subject: render: drop wlr_renderer_impl.texture_from_pixels --- render/gles2/renderer.c | 1 - render/gles2/texture.c | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'render/gles2') diff --git a/render/gles2/renderer.c b/render/gles2/renderer.c index 9bfaebd7..8f1bf883 100644 --- a/render/gles2/renderer.c +++ b/render/gles2/renderer.c @@ -592,7 +592,6 @@ static const struct wlr_renderer_impl renderer_impl = { .get_render_formats = gles2_get_render_formats, .preferred_read_format = gles2_preferred_read_format, .read_pixels = gles2_read_pixels, - .texture_from_pixels = gles2_texture_from_pixels, .texture_from_wl_drm = gles2_texture_from_wl_drm, .texture_from_dmabuf = gles2_texture_from_dmabuf, .init_wl_display = gles2_init_wl_display, diff --git a/render/gles2/texture.c b/render/gles2/texture.c index 303ac411..87710a18 100644 --- a/render/gles2/texture.c +++ b/render/gles2/texture.c @@ -179,7 +179,8 @@ static struct wlr_gles2_texture *gles2_texture_create( return texture; } -struct wlr_texture *gles2_texture_from_pixels(struct wlr_renderer *wlr_renderer, +static struct wlr_texture *gles2_texture_from_pixels( + struct wlr_renderer *wlr_renderer, uint32_t drm_format, uint32_t stride, uint32_t width, uint32_t height, const void *data) { struct wlr_gles2_renderer *renderer = gles2_get_renderer(wlr_renderer); -- cgit v1.2.3