aboutsummaryrefslogtreecommitdiffstats
path: root/src/platform/windows
diff options
context:
space:
mode:
authorPierre Krieger <pierre.krieger1708@gmail.com>2015-08-07 16:22:31 +0200
committerPierre Krieger <pierre.krieger1708@gmail.com>2015-08-07 16:22:31 +0200
commit587dedaa9e95236f891d9a0e4ec04ee3700236a8 (patch)
tree86e5ba50cdab22fb225aa3b2178d9e04779809ec /src/platform/windows
parentbee3e0e0f0ed4b642afaa6d82389839e87c840f0 (diff)
downloadglutin-587dedaa9e95236f891d9a0e4ec04ee3700236a8.tar.gz
glutin-587dedaa9e95236f891d9a0e4ec04ee3700236a8.zip
Correctly handle eglGetDisplay
Diffstat (limited to 'src/platform/windows')
-rw-r--r--src/platform/windows/mod.rs3
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));