aboutsummaryrefslogtreecommitdiffstats
path: root/src/api/win32/mod.rs
diff options
context:
space:
mode:
authortomaka <pierre.krieger1708@gmail.com>2015-07-28 19:57:33 +0200
committertomaka <pierre.krieger1708@gmail.com>2015-07-28 19:57:33 +0200
commitb3d52cc8fe2cd2f66eedb914a5061f1640129ec4 (patch)
tree4b1f32a272cdfe62295bdc4b2a1ad10444458bf9 /src/api/win32/mod.rs
parent991b15df873136d4e7e41590cf2ffc54619b14dd (diff)
parentf7cc80fbb1607d9af05476dfe5bbb404c55b1b69 (diff)
downloadglutin-b3d52cc8fe2cd2f66eedb914a5061f1640129ec4.tar.gz
glutin-b3d52cc8fe2cd2f66eedb914a5061f1640129ec4.zip
Merge pull request #550 from tomaka/egl-headless-win32
Use an EGL pbuffer on win32 if possible
Diffstat (limited to 'src/api/win32/mod.rs')
-rw-r--r--src/api/win32/mod.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/api/win32/mod.rs b/src/api/win32/mod.rs
index d21f16d..9b03f64 100644
--- a/src/api/win32/mod.rs
+++ b/src/api/win32/mod.rs
@@ -29,6 +29,7 @@ use kernel32;
use api::wgl;
use api::wgl::Context as WglContext;
use api::egl::Context as EglContext;
+use api::egl::ffi::egl::Egl;
use self::init::RawContext;
@@ -84,7 +85,7 @@ impl WindowProxy {
impl Window {
/// See the docs in the crate root file.
- pub fn new(builder: BuilderAttribs) -> Result<Window, CreationError> {
+ pub fn new(builder: BuilderAttribs, egl: Option<&Egl>) -> Result<Window, CreationError> {
let (builder, sharing) = builder.extract_non_static();
let sharing = sharing.map(|w| match w.context {
@@ -92,7 +93,7 @@ impl Window {
Context::Egl(_) => unimplemented!(), // FIXME:
});
- init::new_window(builder, sharing)
+ init::new_window(builder, sharing, egl)
}
/// See the docs in the crate root file.