diff options
author | tomaka <pierre.krieger1708@gmail.com> | 2015-05-09 07:04:01 +0200 |
---|---|---|
committer | tomaka <pierre.krieger1708@gmail.com> | 2015-05-09 07:04:01 +0200 |
commit | 9ba9bfc369a211d96688a785a0bfe9d572d8638b (patch) | |
tree | 3088cf5a56d0e96a47301a17ac376552c338a94a /src/api/egl/mod.rs | |
parent | 3f20bf345e4464ab83e7b8d1737b0173ec7b6d4f (diff) | |
parent | c973a1f83e2f9cea017e9dd48c4acaeb23fe5eb7 (diff) | |
download | glutin-9ba9bfc369a211d96688a785a0bfe9d572d8638b.tar.gz glutin-9ba9bfc369a211d96688a785a0bfe9d572d8638b.zip |
Merge pull request #439 from Esption/master
Fixed build warnings on Linux
Diffstat (limited to 'src/api/egl/mod.rs')
-rw-r--r-- | src/api/egl/mod.rs | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/api/egl/mod.rs b/src/api/egl/mod.rs index b2fe2c6..8f9ebcf 100644 --- a/src/api/egl/mod.rs +++ b/src/api/egl/mod.rs @@ -1,4 +1,5 @@ #![cfg(any(target_os = "linux", target_os = "android"))] +#![allow(unused_variables)] use BuilderAttribs; use CreationError; @@ -161,9 +162,7 @@ impl Context { impl GlContext for Context { unsafe fn make_current(&self) { - let ret = unsafe { - self.egl.MakeCurrent(self.display, self.surface, self.surface, self.context) - }; + let ret = self.egl.MakeCurrent(self.display, self.surface, self.surface, self.context); if ret == 0 { panic!("eglMakeCurrent failed"); @@ -206,8 +205,6 @@ unsafe impl Sync for Context {} impl Drop for Context { fn drop(&mut self) { - use std::ptr; - unsafe { // we don't call MakeCurrent(0, 0) because we are not sure that the context // is still the current one |