From 87d62e5b6f38ab34586c0c9b5f41f1558e51cd14 Mon Sep 17 00:00:00 2001 From: Tomaka17 Date: Mon, 11 Aug 2014 10:32:33 +0200 Subject: get_proc_address now returns a libc::c_void --- src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/lib.rs b/src/lib.rs index 46f2f93..aae14e7 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -265,8 +265,8 @@ impl Window { /// /// Contrary to `wglGetProcAddress`, all available OpenGL functions return an address. #[inline] - pub fn get_proc_address(&self, addr: &str) -> *const () { - self.window.get_proc_address(addr) + pub fn get_proc_address(&self, addr: &str) -> *const libc::c_void { + self.window.get_proc_address(addr) as *const libc::c_void } /// Swaps the buffers in case of double or triple buffering. -- cgit v1.2.3