aboutsummaryrefslogtreecommitdiffstats
path: root/src/win32/mod.rs
diff options
context:
space:
mode:
authorTomaka17 <pierre.krieger1708@gmail.com>2014-10-26 10:32:51 +0100
committerTomaka17 <pierre.krieger1708@gmail.com>2014-10-26 16:35:24 +0100
commit8249e545f8d582cc3a99ddab3ab7c998c152cb3a (patch)
treea3d9647aa90deaf5725125f9b7452cf25c82d445 /src/win32/mod.rs
parente887cf57b8177f28d4307f7d092f158fac09ef15 (diff)
downloadglutin-8249e545f8d582cc3a99ddab3ab7c998c152cb3a.tar.gz
glutin-8249e545f8d582cc3a99ddab3ab7c998c152cb3a.zip
Add `with_vsync` to WindowBuilder, plus the win32 implementation
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 33d0600..3cfdc7e 100644
--- a/src/win32/mod.rs
+++ b/src/win32/mod.rs
@@ -25,7 +25,7 @@ impl HeadlessContext {
/// See the docs in the crate root file.
pub fn new(builder: HeadlessRendererBuilder) -> Result<HeadlessContext, String> {
let HeadlessRendererBuilder { dimensions, gl_version } = builder;
- init::new_window(Some(dimensions), "".to_string(), None, gl_version, true)
+ init::new_window(Some(dimensions), "".to_string(), None, gl_version, false, true)
.map(|w| HeadlessContext(w))
}
@@ -68,8 +68,8 @@ pub struct Window {
impl Window {
/// See the docs in the crate root file.
pub fn new(builder: WindowBuilder) -> Result<Window, String> {
- let WindowBuilder { dimensions, title, monitor, gl_version } = builder;
- init::new_window(dimensions, title, monitor, gl_version, false)
+ let WindowBuilder { dimensions, title, monitor, gl_version, vsync } = builder;
+ init::new_window(dimensions, title, monitor, gl_version, vsync, false)
}
}