aboutsummaryrefslogtreecommitdiffstats
path: root/src/win32/mod.rs
diff options
context:
space:
mode:
authortomaka <pierre.krieger1708@gmail.com>2014-11-27 15:35:39 +0100
committertomaka <pierre.krieger1708@gmail.com>2014-11-27 15:35:39 +0100
commit33455a4c3ef6caa09e2f0f533b964b69128a8d6a (patch)
tree6e556313801c3d959ae3d05455deadd66797dcd0 /src/win32/mod.rs
parent596132dc9300f43385e5bb8c3f24df49cfe8529d (diff)
parent729551f82859673fcf9b4b26dbb145184a2a7ca7 (diff)
downloadglutin-33455a4c3ef6caa09e2f0f533b964b69128a8d6a.tar.gz
glutin-33455a4c3ef6caa09e2f0f533b964b69128a8d6a.zip
Merge pull request #133 from tomaka/multisampling
Implement multisampling for x11
Diffstat (limited to 'src/win32/mod.rs')
-rw-r--r--src/win32/mod.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/win32/mod.rs b/src/win32/mod.rs
index ef2e3ea..f08c033 100644
--- a/src/win32/mod.rs
+++ b/src/win32/mod.rs
@@ -26,7 +26,7 @@ impl HeadlessContext {
pub fn new(builder: HeadlessRendererBuilder) -> Result<HeadlessContext, CreationError> {
let HeadlessRendererBuilder { dimensions, gl_version, gl_debug } = builder;
init::new_window(Some(dimensions), "".to_string(), None, gl_version, gl_debug, false, true,
- None)
+ None, None)
.map(|w| HeadlessContext(w))
}
@@ -70,9 +70,9 @@ impl Window {
/// See the docs in the crate root file.
pub fn new(builder: WindowBuilder) -> Result<Window, CreationError> {
let WindowBuilder { dimensions, title, monitor, gl_version,
- gl_debug, vsync, visible, sharing } = builder;
+ gl_debug, vsync, visible, sharing, multisampling } = builder;
init::new_window(dimensions, title, monitor, gl_version, gl_debug, vsync,
- !visible, sharing.map(|w| w.window.context))
+ !visible, sharing.map(|w| w.window.context), multisampling)
}
}