From 37262fb2288c38553cc8c8f36e59782273c83e7d Mon Sep 17 00:00:00 2001 From: Pierre Krieger Date: Wed, 4 Nov 2015 11:27:50 +0100 Subject: Remove public exports of gl_common and libc --- src/window.rs | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) (limited to 'src/window.rs') diff --git a/src/window.rs b/src/window.rs index 7a87806..86322bd 100644 --- a/src/window.rs +++ b/src/window.rs @@ -18,9 +18,7 @@ use Window; use WindowAttributes; use native_monitor::NativeMonitorId; -use gl_common; use libc; - use platform; /// Object that allows you to build windows. @@ -397,8 +395,8 @@ impl Window { /// /// Contrary to `wglGetProcAddress`, all available OpenGL functions return an address. #[inline] - pub fn get_proc_address(&self, addr: &str) -> *const libc::c_void { - self.window.get_proc_address(addr) as *const libc::c_void + pub fn get_proc_address(&self, addr: &str) -> *const () { + self.window.get_proc_address(addr) } /// Swaps the buffers in case of double or triple buffering. @@ -492,13 +490,6 @@ impl Window { } } -impl gl_common::GlFunctionsSource for Window { - #[inline] - fn get_proc_addr(&self, addr: &str) -> *const libc::c_void { - self.get_proc_address(addr) - } -} - impl GlContext for Window { #[inline] unsafe fn make_current(&self) -> Result<(), ContextError> { @@ -511,7 +502,7 @@ impl GlContext for Window { } #[inline] - fn get_proc_address(&self, addr: &str) -> *const libc::c_void { + fn get_proc_address(&self, addr: &str) -> *const () { self.get_proc_address(addr) } -- cgit v1.2.3