mirror of
https://github.com/italicsjenga/winit-sonoma-fix.git
synced 2025-01-11 21:31:29 +11:00
Fix two warnings on X11
This commit is contained in:
parent
cbf07d3190
commit
3f69cbb189
|
@ -154,12 +154,12 @@ impl Window {
|
||||||
|
|
||||||
// getting the pointer
|
// getting the pointer
|
||||||
let fn_ptr = {
|
let fn_ptr = {
|
||||||
let mut addr = unsafe { ffi::glXGetProcAddress(b"glXCreateContextAttribs".as_ptr()
|
let mut addr = ffi::glXGetProcAddress(b"glXCreateContextAttribs".as_ptr()
|
||||||
as *const u8) } as *const ();
|
as *const u8) as *const ();
|
||||||
|
|
||||||
if addr.is_null() {
|
if addr.is_null() {
|
||||||
addr = unsafe { ffi::glXGetProcAddress(b"glXCreateContextAttribsARB".as_ptr()
|
addr = ffi::glXGetProcAddress(b"glXCreateContextAttribsARB".as_ptr()
|
||||||
as *const u8) } as *const ();
|
as *const u8) as *const ();
|
||||||
}
|
}
|
||||||
|
|
||||||
addr.to_option().map(|addr| {
|
addr.to_option().map(|addr| {
|
||||||
|
|
Loading…
Reference in a new issue