aboutsummaryrefslogtreecommitdiff
path: root/render
diff options
context:
space:
mode:
authorScott Anderson <ascent12@hotmail.com>2017-10-22 10:20:26 +1300
committerScott Anderson <ascent12@hotmail.com>2017-10-22 10:39:23 +1300
commit37b8a096a9907ea9c9991750c75d9fb15e445681 (patch)
tree8cf70578356f84e2c41a68a2e6e1be9b4c3d2a40 /render
parentbdeffad7e5cacd2d1e27ddc0d44b3d9e2c19587d (diff)
Pass backend to render
Diffstat (limited to 'render')
-rw-r--r--render/gles2/renderer.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/render/gles2/renderer.c b/render/gles2/renderer.c
index cf4a0aab..646d69ec 100644
--- a/render/gles2/renderer.c
+++ b/render/gles2/renderer.c
@@ -246,9 +246,8 @@ struct wlr_renderer *wlr_gles2_renderer_create(struct wlr_backend *backend) {
return NULL;
}
wlr_renderer_init(&renderer->wlr_renderer, &wlr_renderer_impl);
- if (backend) {
- struct wlr_egl *egl = wlr_backend_get_egl(backend);
- renderer->egl = egl;
- }
+
+ renderer->egl = wlr_backend_get_egl(backend);
+
return &renderer->wlr_renderer;
}