aboutsummaryrefslogtreecommitdiffstats
path: root/src/win32/mod.rs
diff options
context:
space:
mode:
authortomaka <pierre.krieger1708@gmail.com>2014-11-09 17:03:10 +0100
committertomaka <pierre.krieger1708@gmail.com>2014-11-09 17:03:10 +0100
commit7d00bedbdbe832b081f675f41304411cfb04935e (patch)
treec3bf069645933f06c5942d258bb4c3f54f75b58d /src/win32/mod.rs
parent9ee0875d4e6cdd7d8e66afc9d39efe99197a2b54 (diff)
parent8c1b2dd63370fe102b2a447e7840fc038413b6cc (diff)
downloadglutin-7d00bedbdbe832b081f675f41304411cfb04935e.tar.gz
glutin-7d00bedbdbe832b081f675f41304411cfb04935e.zip
Merge pull request #104 from tomaka/debug-flag
Add support for the OpenGL debug flag
Diffstat (limited to 'src/win32/mod.rs')
-rw-r--r--src/win32/mod.rs9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/win32/mod.rs b/src/win32/mod.rs
index 282b0bb..b282385 100644
--- a/src/win32/mod.rs
+++ b/src/win32/mod.rs
@@ -24,8 +24,8 @@ pub struct HeadlessContext(Window);
impl HeadlessContext {
/// See the docs in the crate root file.
pub fn new(builder: HeadlessRendererBuilder) -> Result<HeadlessContext, CreationError> {
- let HeadlessRendererBuilder { dimensions, gl_version } = builder;
- init::new_window(Some(dimensions), "".to_string(), None, gl_version, false, true)
+ let HeadlessRendererBuilder { dimensions, gl_version, gl_debug } = builder;
+ init::new_window(Some(dimensions), "".to_string(), None, gl_version, gl_debug, false, true)
.map(|w| HeadlessContext(w))
}
@@ -68,8 +68,9 @@ pub struct Window {
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, vsync, visible } = builder;
- init::new_window(dimensions, title, monitor, gl_version, vsync, !visible)
+ let WindowBuilder { dimensions, title, monitor, gl_version,
+ gl_debug, vsync, visible } = builder;
+ init::new_window(dimensions, title, monitor, gl_version, gl_debug, vsync, !visible)
}
}