diff --git a/src/lib.rs b/src/lib.rs index bffdda3e..0d6c828b 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -265,7 +265,7 @@ impl BuilderAttribs<'static> { title: "glutin window".to_string(), monitor: None, gl_version: GlRequest::Latest, - gl_debug: cfg!(ndebug), + gl_debug: !cfg!(ndebug), vsync: false, visible: true, multisampling: None, diff --git a/src/window.rs b/src/window.rs index f45cd68e..64058ea2 100644 --- a/src/window.rs +++ b/src/window.rs @@ -74,7 +74,7 @@ impl<'a> WindowBuilder<'a> { /// Sets the *debug* flag for the OpenGL context. /// - /// The default value for this flag is `cfg!(ndebug)`, which means that it's enabled + /// The default value for this flag is `!cfg!(ndebug)`, which means that it's enabled /// when you run `cargo build` and disabled when you run `cargo build --release`. pub fn with_gl_debug_flag(mut self, flag: bool) -> WindowBuilder<'a> { self.attribs.gl_debug = flag;