diff options
author | nyorain <nyorain@gmail.com> | 2017-08-09 21:25:34 +0200 |
---|---|---|
committer | nyorain <nyorain@gmail.com> | 2017-08-10 10:59:58 +0200 |
commit | 67369173aaafd763a6369a84917ae457c7095a72 (patch) | |
tree | c42bbcebd5b1e972c422386ce46f353c2f3a31ca /examples | |
parent | 750d0ad4583732ee24c998f46a62fc684f86bc48 (diff) |
Implement drm (egl) buffer attaching
Diffstat (limited to 'examples')
-rw-r--r-- | examples/compositor/main.c | 2 | ||||
-rw-r--r-- | examples/rotation.c | 2 | ||||
-rw-r--r-- | examples/tablet.c | 2 | ||||
-rw-r--r-- | examples/touch.c | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/examples/compositor/main.c b/examples/compositor/main.c index 7ac549e5..1fbb38ad 100644 --- a/examples/compositor/main.c +++ b/examples/compositor/main.c @@ -67,7 +67,7 @@ int main() { }; compositor_init(&compositor); - state.renderer = wlr_gles2_renderer_init(); + state.renderer = wlr_gles2_renderer_init(compositor.backend->egl); wl_display_init_shm(compositor.display); wl_compositor_init(compositor.display, &state.compositor, state.renderer); wl_shell_init(compositor.display, &state.shell); 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); diff --git a/examples/tablet.c b/examples/tablet.c index 0be6dcb9..178ccc09 100644 --- a/examples/tablet.c +++ b/examples/tablet.c @@ -152,7 +152,7 @@ int main(int argc, char *argv[]) { }; compositor_init(&compositor); - state.renderer = wlr_gles2_renderer_init(); + state.renderer = wlr_gles2_renderer_init(compositor.backend->egl); compositor_run(&compositor); diff --git a/examples/touch.c b/examples/touch.c index 76b92ad2..b3f32855 100644 --- a/examples/touch.c +++ b/examples/touch.c @@ -104,7 +104,7 @@ int main(int argc, char *argv[]) { }; 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_ARGB8888, cat_tex.width, cat_tex.width, cat_tex.height, cat_tex.pixel_data); |