diff options
author | Pierre Krieger <pierre.krieger1708@gmail.com> | 2015-07-18 18:32:02 +0200 |
---|---|---|
committer | Pierre Krieger <pierre.krieger1708@gmail.com> | 2015-07-18 18:43:23 +0200 |
commit | 4eacfce59e99e4d841255a053ce6acdc77b0c91c (patch) | |
tree | 67774d64b1e3ab7e5350f6e1123f33d959cdb7c6 /src/api/wayland | |
parent | c1ebb8cf310947d7771c51c4949acedb19c41ee0 (diff) | |
download | glutin-4eacfce59e99e4d841255a053ce6acdc77b0c91c.tar.gz glutin-4eacfce59e99e4d841255a053ce6acdc77b0c91c.zip |
Split creating an EGL context in two parts
Diffstat (limited to 'src/api/wayland')
-rw-r--r-- | src/api/wayland/mod.rs | 6 |
1 files changed, 3 insertions, 3 deletions
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())); |