aboutsummaryrefslogtreecommitdiffstats
path: root/src/platform
diff options
context:
space:
mode:
authorPierre Krieger <pierre.krieger1708@gmail.com>2015-09-21 11:11:11 +0200
committerPierre Krieger <pierre.krieger1708@gmail.com>2015-09-21 12:03:58 +0200
commit8f3ec7998de74dfdb69bd1ef7f038767313b3ae1 (patch)
tree63058c0d55c959b45a0678c821d7328106074c29 /src/platform
parent932e565391ea6004714ff74e006637ad29961b06 (diff)
downloadglutin-8f3ec7998de74dfdb69bd1ef7f038767313b3ae1.tar.gz
glutin-8f3ec7998de74dfdb69bd1ef7f038767313b3ae1.zip
Finish converting windows to the new design
Diffstat (limited to 'src/platform')
-rw-r--r--src/platform/windows/mod.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/platform/windows/mod.rs b/src/platform/windows/mod.rs
index 918b779..51f7567 100644
--- a/src/platform/windows/mod.rs
+++ b/src/platform/windows/mod.rs
@@ -58,7 +58,8 @@ pub struct Window(win32::Window);
impl Window {
/// See the docs in the crate root file.
pub fn new(builder: BuilderAttribs) -> Result<Window, CreationError> {
- win32::Window::new(builder, EGL.as_ref().map(|w| &w.0)).map(|w| Window(w))
+ win32::Window::new(&builder.window, &builder.pf_reqs, &builder.opengl.clone().map_sharing(|w| &w.0),
+ EGL.as_ref().map(|w| &w.0)).map(|w| Window(w))
}
}
@@ -101,7 +102,8 @@ impl HeadlessContext {
}
}
- let window = try!(win32::Window::new(builder, EGL.as_ref().map(|w| &w.0)));
+ let window = try!(win32::Window::new(&builder.window, &builder.pf_reqs, &builder.opengl.clone().map_sharing(|w| &w.0),
+ EGL.as_ref().map(|w| &w.0)));
Ok(HeadlessContext::HiddenWindow(window))
}
}