From 67369173aaafd763a6369a84917ae457c7095a72 Mon Sep 17 00:00:00 2001 From: nyorain Date: Wed, 9 Aug 2017 21:25:34 +0200 Subject: Implement drm (egl) buffer attaching --- examples/rotation.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples/rotation.c') diff --git a/examples/rotation.c b/examples/rotation.c index 34994e04..9ece1b92 100644 --- a/examples/rotation.c +++ b/examples/rotation.c @@ -204,7 +204,7 @@ int main(int argc, char *argv[]) { compositor.keyboard_key_cb = handle_keyboard_key; compositor_init(&compositor); - state.renderer = wlr_gles2_renderer_init(); + state.renderer = wlr_gles2_renderer_init(compositor.backend->egl); state.cat_texture = wlr_render_texture_init(state.renderer); wlr_texture_upload_pixels(state.cat_texture, WL_SHM_FORMAT_ABGR8888, cat_tex.width, cat_tex.width, cat_tex.height, cat_tex.pixel_data); -- cgit v1.2.3