mirror of
https://github.com/italicsjenga/winit-sonoma-fix.git
synced 2024-12-25 06:41:31 +11:00
Merge pull request #342 from tomaka/debug-gl
Fix default OpenGL debug flag being the opposite of what it should be
This commit is contained in:
commit
f0f4a96d50
|
@ -265,7 +265,7 @@ impl BuilderAttribs<'static> {
|
||||||
title: "glutin window".to_string(),
|
title: "glutin window".to_string(),
|
||||||
monitor: None,
|
monitor: None,
|
||||||
gl_version: GlRequest::Latest,
|
gl_version: GlRequest::Latest,
|
||||||
gl_debug: cfg!(ndebug),
|
gl_debug: !cfg!(ndebug),
|
||||||
vsync: false,
|
vsync: false,
|
||||||
visible: true,
|
visible: true,
|
||||||
multisampling: None,
|
multisampling: None,
|
||||||
|
|
|
@ -74,7 +74,7 @@ impl<'a> WindowBuilder<'a> {
|
||||||
|
|
||||||
/// Sets the *debug* flag for the OpenGL context.
|
/// 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`.
|
/// 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> {
|
pub fn with_gl_debug_flag(mut self, flag: bool) -> WindowBuilder<'a> {
|
||||||
self.attribs.gl_debug = flag;
|
self.attribs.gl_debug = flag;
|
||||||
|
|
Loading…
Reference in a new issue