diff options
author | tomaka <pierre.krieger1708@gmail.com> | 2015-07-28 19:57:33 +0200 |
---|---|---|
committer | tomaka <pierre.krieger1708@gmail.com> | 2015-07-28 19:57:33 +0200 |
commit | b3d52cc8fe2cd2f66eedb914a5061f1640129ec4 (patch) | |
tree | 4b1f32a272cdfe62295bdc4b2a1ad10444458bf9 /src/api/win32/mod.rs | |
parent | 991b15df873136d4e7e41590cf2ffc54619b14dd (diff) | |
parent | f7cc80fbb1607d9af05476dfe5bbb404c55b1b69 (diff) | |
download | glutin-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.rs | 5 |
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. |