diff options
Diffstat (limited to 'src/x11/mod.rs')
-rw-r--r-- | src/x11/mod.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/x11/mod.rs b/src/x11/mod.rs index 4088f29..c9541b9 100644 --- a/src/x11/mod.rs +++ b/src/x11/mod.rs @@ -154,12 +154,12 @@ impl Window { // getting the pointer let fn_ptr = { - let mut addr = unsafe { ffi::glXGetProcAddress(b"glXCreateContextAttribs".as_ptr() - as *const u8) } as *const (); + let mut addr = ffi::glXGetProcAddress(b"glXCreateContextAttribs".as_ptr() + as *const u8) as *const (); if addr.is_null() { - addr = unsafe { ffi::glXGetProcAddress(b"glXCreateContextAttribsARB".as_ptr() - as *const u8) } as *const (); + addr = ffi::glXGetProcAddress(b"glXCreateContextAttribsARB".as_ptr() + as *const u8) as *const (); } addr.to_option().map(|addr| { |