diff options
author | emersion <contact@emersion.fr> | 2018-03-31 18:49:43 -0400 |
---|---|---|
committer | emersion <contact@emersion.fr> | 2018-03-31 18:49:43 -0400 |
commit | 33a2eb4b7775d1a3ab2b767739c1f1f054683d22 (patch) | |
tree | cddffb9add6cb5cde4b25305ec1d9e14772ef9c1 /render | |
parent | 00e12278c7f94ff7d9505e359c671d50e8622020 (diff) |
Untie wlr_backend from wlr_renderer
Diffstat (limited to 'render')
-rw-r--r-- | render/gles2/renderer.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/render/gles2/renderer.c b/render/gles2/renderer.c index c8094847..77af0ab7 100644 --- a/render/gles2/renderer.c +++ b/render/gles2/renderer.c @@ -6,7 +6,6 @@ #include <stdlib.h> #include <wayland-server-protocol.h> #include <wayland-util.h> -#include <wlr/backend.h> #include <wlr/render/egl.h> #include <wlr/render/interface.h> #include <wlr/render/wlr_renderer.h> @@ -400,7 +399,7 @@ extern const GLchar tex_fragment_src_rgba[]; extern const GLchar tex_fragment_src_rgbx[]; extern const GLchar tex_fragment_src_external[]; -struct wlr_renderer *wlr_gles2_renderer_create(struct wlr_backend *backend) { +struct wlr_renderer *wlr_gles2_renderer_create(struct wlr_egl *egl) { struct wlr_gles2_renderer *renderer = calloc(1, sizeof(struct wlr_gles2_renderer)); if (renderer == NULL) { @@ -408,7 +407,7 @@ struct wlr_renderer *wlr_gles2_renderer_create(struct wlr_backend *backend) { } wlr_renderer_init(&renderer->wlr_renderer, &renderer_impl); - renderer->egl = wlr_backend_get_egl(backend); + renderer->egl = egl; wlr_egl_make_current(renderer->egl, EGL_NO_SURFACE, NULL); renderer->exts_str = (const char*) glGetString(GL_EXTENSIONS); |