aboutsummaryrefslogtreecommitdiffstats
path: root/src/api/win32
diff options
context:
space:
mode:
authorPierre Krieger <pierre.krieger1708@gmail.com>2015-07-18 18:32:02 +0200
committerPierre Krieger <pierre.krieger1708@gmail.com>2015-07-18 18:43:23 +0200
commit4eacfce59e99e4d841255a053ce6acdc77b0c91c (patch)
tree67774d64b1e3ab7e5350f6e1123f33d959cdb7c6 /src/api/win32
parentc1ebb8cf310947d7771c51c4949acedb19c41ee0 (diff)
downloadglutin-4eacfce59e99e4d841255a053ce6acdc77b0c91c.tar.gz
glutin-4eacfce59e99e4d841255a053ce6acdc77b0c91c.zip
Split creating an EGL context in two parts
Diffstat (limited to 'src/api/win32')
-rw-r--r--src/api/win32/init.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/api/win32/init.rs b/src/api/win32/init.rs
index cc6d2d2..fdb88c9 100644
--- a/src/api/win32/init.rs
+++ b/src/api/win32/init.rs
@@ -177,8 +177,8 @@ unsafe fn init(title: Vec<u16>, builder: BuilderAttribs<'static>,
unsafe { kernel32::GetProcAddress(dll, name.as_ptr()) as *const libc::c_void }
});
- if let Ok(c) = EglContext::new(egl, &builder, Some(ptr::null()),
- real_window.0)
+ if let Ok(c) = EglContext::new(egl, &builder, Some(ptr::null()))
+ .and_then(|p| p.finish(real_window.0))
{
Context::Egl(c)