Add support for the OpenGL debug flag
This commit is contained in:
parent
9ee0875d4e
commit
8c1b2dd633
4 changed files with 39 additions and 6 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue