aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPierre Krieger <pierre.krieger1708@gmail.com>2014-08-07 18:05:51 +0200
committerPierre Krieger <pierre.krieger1708@gmail.com>2014-08-07 18:05:51 +0200
commit3f69cbb189a7f54d7f4389a2b8a71f0c23dfd04d (patch)
tree873f6d33b3bd943c3200c34b08d2aa6ca8706f21 /src
parentcbf07d3190b8ce07b3f6ec08335677240779218e (diff)
downloadglutin-3f69cbb189a7f54d7f4389a2b8a71f0c23dfd04d.tar.gz
glutin-3f69cbb189a7f54d7f4389a2b8a71f0c23dfd04d.zip
Fix two warnings on X11
Diffstat (limited to 'src')
-rw-r--r--src/x11/mod.rs8
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| {