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/x11 | |
parent | c1ebb8cf310947d7771c51c4949acedb19c41ee0 (diff) | |
download | glutin-4eacfce59e99e4d841255a053ce6acdc77b0c91c.tar.gz glutin-4eacfce59e99e4d841255a053ce6acdc77b0c91c.zip |
Split creating an EGL context in two parts
Diffstat (limited to 'src/api/x11')
-rw-r--r-- | src/api/x11/window.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/api/x11/window.rs b/src/api/x11/window.rs index 15e27ce..04ad2ab 100644 --- a/src/api/x11/window.rs +++ b/src/api/x11/window.rs @@ -572,14 +572,14 @@ impl Window { Context::Glx(try!(GlxContext::new(glx.clone(), builder, display.display, window, fb_config, visual_infos))) } else if let Some(ref egl) = display.egl { - Context::Egl(try!(EglContext::new(egl.clone(), &builder, Some(display.display as *const _), window as *const _))) + Context::Egl(try!(EglContext::new(egl.clone(), &builder, Some(display.display as *const _)).and_then(|p| p.finish(window as *const _)))) } else { return Err(CreationError::NotSupported); } }, GlRequest::Specific(Api::OpenGlEs, _) => { if let Some(ref egl) = display.egl { - Context::Egl(try!(EglContext::new(egl.clone(), &builder, Some(display.display as *const _), window as *const _))) + Context::Egl(try!(EglContext::new(egl.clone(), &builder, Some(display.display as *const _)).and_then(|p| p.finish(window as *const _)))) } else { return Err(CreationError::NotSupported); } |