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/platform | |
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/platform')
-rw-r--r-- | src/platform/windows/mod.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/platform/windows/mod.rs b/src/platform/windows/mod.rs index cf63784..7087a23 100644 --- a/src/platform/windows/mod.rs +++ b/src/platform/windows/mod.rs @@ -14,6 +14,7 @@ use PixelFormat; use GlContext; use api::egl::ffi::egl::Egl; +use api::egl; use api::egl::Context as EglContext; use std::ffi::CString; @@ -90,7 +91,7 @@ impl HeadlessContext { // if EGL is available, we try using EGL first // if EGL returns an error, we try the hidden window method if let &Some(ref egl) = &*EGL { - let context = EglContext::new(egl.0.clone(), &builder, None) + let context = EglContext::new(egl.0.clone(), &builder, egl::NativeDisplay::Other(None)) .and_then(|prototype| prototype.finish_pbuffer()) .map(|ctxt| HeadlessContext::EglPbuffer(ctxt)); |