aboutsummaryrefslogtreecommitdiffstats
path: root/src/x11/window/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/x11/window/mod.rs')
-rw-r--r--src/x11/window/mod.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/x11/window/mod.rs b/src/x11/window/mod.rs
index 34d0d3b..38b4559 100644
--- a/src/x11/window/mod.rs
+++ b/src/x11/window/mod.rs
@@ -225,6 +225,11 @@ impl Window {
attributes.push(version.val1() as libc::c_int);
}
+ if builder.gl_debug {
+ attributes.push(ffi::glx_extra::CONTEXT_FLAGS_ARB as libc::c_int);
+ attributes.push(ffi::glx_extra::CONTEXT_DEBUG_BIT_ARB as libc::c_int);
+ }
+
attributes.push(0);
// loading the extra GLX functions