diff options
author | Tomaka17 <pierre.krieger1708@gmail.com> | 2014-11-09 16:07:58 +0100 |
---|---|---|
committer | Tomaka17 <pierre.krieger1708@gmail.com> | 2014-11-09 16:44:53 +0100 |
commit | 8c1b2dd63370fe102b2a447e7840fc038413b6cc (patch) | |
tree | c3bf069645933f06c5942d258bb4c3f54f75b58d /src/x11/window | |
parent | 9ee0875d4e6cdd7d8e66afc9d39efe99197a2b54 (diff) | |
download | glutin-8c1b2dd63370fe102b2a447e7840fc038413b6cc.tar.gz glutin-8c1b2dd63370fe102b2a447e7840fc038413b6cc.zip |
Add support for the OpenGL debug flag
Diffstat (limited to 'src/x11/window')
-rw-r--r-- | src/x11/window/mod.rs | 5 |
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 |