Fixed build warnings
This commit is contained in:
parent
0d10dda72a
commit
c973a1f83e
10 changed files with 21 additions and 16 deletions
|
|
@ -414,7 +414,7 @@ impl Window {
|
|||
};
|
||||
|
||||
// getting the visual infos
|
||||
let mut visual_infos: ffi::glx::types::XVisualInfo = unsafe {
|
||||
let visual_infos: ffi::glx::types::XVisualInfo = unsafe {
|
||||
let vi = glx.GetVisualFromFBConfig(display as *mut _, fb_config);
|
||||
if vi.is_null() {
|
||||
return Err(OsError(format!("glx::ChooseVisual failed")));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue