aboutsummaryrefslogtreecommitdiffstats
path: root/src/api/x11
diff options
context:
space:
mode:
authortomaka <pierre.krieger1708@gmail.com>2015-07-19 09:42:56 +0200
committertomaka <pierre.krieger1708@gmail.com>2015-07-19 09:42:56 +0200
commit896640f2e0fd659e952e492c1b74841624db8d08 (patch)
treeadccd7de2cc8374f432b84e921fb986988ad0679 /src/api/x11
parent7d1d035d9ad5d262a67c6857596caefe957dcfda (diff)
parent4eacfce59e99e4d841255a053ce6acdc77b0c91c (diff)
downloadglutin-896640f2e0fd659e952e492c1b74841624db8d08.tar.gz
glutin-896640f2e0fd659e952e492c1b74841624db8d08.zip
Merge pull request #523 from tomaka/egl-split
Split creating an EGL context in two parts
Diffstat (limited to 'src/api/x11')
-rw-r--r--src/api/x11/window.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/api/x11/window.rs b/src/api/x11/window.rs
index b13a94a..79118ff 100644
--- a/src/api/x11/window.rs
+++ b/src/api/x11/window.rs
@@ -552,14 +552,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);
}