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/headless.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/headless.rs')
-rw-r--r-- | src/headless.rs | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/headless.rs b/src/headless.rs index 566cbee..997d87a 100644 --- a/src/headless.rs +++ b/src/headless.rs @@ -106,26 +106,27 @@ impl gl_common::GlFunctionsSource for HeadlessContext { impl GlContext for HeadlessContext { unsafe fn make_current(&self) { - self.make_current() + self.context.make_current() } fn is_current(&self) -> bool { - self.is_current() + self.context.is_current() } fn get_proc_address(&self, addr: &str) -> *const libc::c_void { - self.get_proc_address(addr) + self.context.get_proc_address(addr) } fn swap_buffers(&self) { - self.swap_buffers() + self.context.swap_buffers() } fn get_api(&self) -> Api { - self.get_api() + self.context.get_api() } fn get_pixel_format(&self) -> PixelFormat { - self.get_pixel_format() + self.context.get_pixel_format() } } + |