diff options
author | tomaka <pierre.krieger1708@gmail.com> | 2015-08-07 16:49:42 +0200 |
---|---|---|
committer | tomaka <pierre.krieger1708@gmail.com> | 2015-08-07 16:49:42 +0200 |
commit | 90e62083d686ed9c878beb348e9b54853242eab0 (patch) | |
tree | 86e5ba50cdab22fb225aa3b2178d9e04779809ec /src/api/win32 | |
parent | 4ab83a23e5d15ac4372ad24cc88f1c970099efc7 (diff) | |
parent | 587dedaa9e95236f891d9a0e4ec04ee3700236a8 (diff) | |
download | glutin-90e62083d686ed9c878beb348e9b54853242eab0.tar.gz glutin-90e62083d686ed9c878beb348e9b54853242eab0.zip |
Merge pull request #566 from tomaka/display-egl
Correct EGL display handling
Diffstat (limited to 'src/api/win32')
-rw-r--r-- | src/api/win32/init.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/api/win32/init.rs b/src/api/win32/init.rs index e6f0648..6ce36d0 100644 --- a/src/api/win32/init.rs +++ b/src/api/win32/init.rs @@ -165,8 +165,9 @@ unsafe fn init(title: Vec<u16>, builder: BuilderAttribs<'static>, let context = match builder.gl_version { GlRequest::Specific(Api::OpenGlEs, (major, minor)) => { if let Some(egl) = egl { - if let Ok(c) = EglContext::new(egl, &builder, Some(ptr::null())) - .and_then(|p| p.finish(real_window.0)) + if let Ok(c) = EglContext::new(egl, &builder, + egl::NativeDisplay::Other(Some(ptr::null()))) + .and_then(|p| p.finish(real_window.0)) { Context::Egl(c) |