Untie wlr_backend from wlr_renderer

This commit is contained in:
emersion 2018-03-31 18:49:43 -04:00
parent 00e12278c7
commit 33a2eb4b77
No known key found for this signature in database
GPG key ID: 0FDE7BE0E88F5E48
10 changed files with 16 additions and 12 deletions

View file

@ -137,7 +137,8 @@ int main(int argc, char *argv[]) {
compositor.keyboard_key_cb = handle_keyboard_key;
compositor_init(&compositor);
state.renderer = wlr_gles2_renderer_create(compositor.backend);
struct wlr_egl *egl = wlr_backend_get_egl(compositor.backend);
state.renderer = wlr_gles2_renderer_create(egl);
if (!state.renderer) {
wlr_log(L_ERROR, "Could not start compositor, OOM");
exit(EXIT_FAILURE);