Add support for the OpenGL debug flag

This commit is contained in:
Tomaka17 2014-11-09 16:07:58 +01:00
parent 9ee0875d4e
commit 8c1b2dd633
4 changed files with 39 additions and 6 deletions

View file

@ -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