From 8c1b2dd63370fe102b2a447e7840fc038413b6cc Mon Sep 17 00:00:00 2001 From: Tomaka17 Date: Sun, 9 Nov 2014 16:07:58 +0100 Subject: Add support for the OpenGL debug flag --- src/x11/window/mod.rs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/x11') 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 -- cgit v1.2.3