aboutsummaryrefslogtreecommitdiff
path: root/examples/output-layout.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/output-layout.c')
-rw-r--r--examples/output-layout.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/output-layout.c b/examples/output-layout.c
index c1392a30..53aae7f0 100644
--- a/examples/output-layout.c
+++ b/examples/output-layout.c
@@ -196,7 +196,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);
state.cat_texture = wlr_texture_from_pixels(state.renderer,
WL_SHM_FORMAT_ABGR8888, cat_tex.width * 4, cat_tex.width, cat_tex.height,
cat_tex.pixel_data);