From 4eacfce59e99e4d841255a053ce6acdc77b0c91c Mon Sep 17 00:00:00 2001 From: Pierre Krieger Date: Sat, 18 Jul 2015 18:32:02 +0200 Subject: Split creating an EGL context in two parts --- src/api/wayland/mod.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/api/wayland') diff --git a/src/api/wayland/mod.rs b/src/api/wayland/mod.rs index 0af5496..826826e 100644 --- a/src/api/wayland/mod.rs +++ b/src/api/wayland/mod.rs @@ -169,9 +169,9 @@ impl Window { try!(EglContext::new( egl, &builder, - Some(wayland_context.display.ptr() as *const _), - (*shell_surface).ptr() as *const _ - )) + Some(wayland_context.display.ptr() as *const _)) + .and_then(|p| p.finish((*shell_surface).ptr() as *const _)) + ) }; let events = Arc::new(Mutex::new(VecDeque::new())); -- cgit v1.2.3