aboutsummaryrefslogtreecommitdiffstats
path: root/src/platform/windows
diff options
context:
space:
mode:
authorPierre Krieger <pierre.krieger1708@gmail.com>2015-09-21 10:11:32 +0200
committerPierre Krieger <pierre.krieger1708@gmail.com>2015-09-21 12:03:57 +0200
commit3054e2ee0236672ae88bd124e60ba49aae701695 (patch)
treeb1245915338b996389bb229e54adee6f9dd9124d /src/platform/windows
parent3ff08d747c40c2fa744483af8717173c6e97cedd (diff)
downloadglutin-3054e2ee0236672ae88bd124e60ba49aae701695.tar.gz
glutin-3054e2ee0236672ae88bd124e60ba49aae701695.zip
Switch EGL to use only pf_reqs and opengl
Diffstat (limited to 'src/platform/windows')
-rw-r--r--src/platform/windows/mod.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/platform/windows/mod.rs b/src/platform/windows/mod.rs
index 521939c..918b779 100644
--- a/src/platform/windows/mod.rs
+++ b/src/platform/windows/mod.rs
@@ -91,8 +91,9 @@ 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, egl::NativeDisplay::Other(None))
- .and_then(|prototype| prototype.finish_pbuffer())
+ let context = EglContext::new(egl.0.clone(), &builder.pf_reqs, &builder.opengl.clone().map_sharing(|_| unimplemented!()), // TODO:
+ egl::NativeDisplay::Other(None))
+ .and_then(|prototype| prototype.finish_pbuffer(builder.window.dimensions.unwrap_or((800, 600)))) // TODO:
.map(|ctxt| HeadlessContext::EglPbuffer(ctxt));
if let Ok(context) = context {