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 --- examples/support/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples') diff --git a/examples/support/mod.rs b/examples/support/mod.rs index 6d5a931..ebbe379 100644 --- a/examples/support/mod.rs +++ b/examples/support/mod.rs @@ -13,7 +13,7 @@ pub struct Context { } pub fn load(window: &glutin::Window) -> Context { - let gl = gl::Gl::load(window); + let gl = gl::Gl::load_with(|ptr| window.get_proc_address(ptr) as *const _); let version = unsafe { let data = CStr::from_ptr(gl.GetString(gl::VERSION) as *const _).to_bytes().to_vec(); -- cgit v1.2.3