aboutsummaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorPierre Krieger <pierre.krieger1708@gmail.com>2015-11-04 11:27:50 +0100
committerPierre Krieger <pierre.krieger1708@gmail.com>2015-11-09 08:46:52 +0100
commit37262fb2288c38553cc8c8f36e59782273c83e7d (patch)
tree8107afeac457b2ffcc2f839df407f5857a2cf37c /examples
parent439d25168e0145bb563c2675ce490c521448f4ba (diff)
downloadglutin-37262fb2288c38553cc8c8f36e59782273c83e7d.tar.gz
glutin-37262fb2288c38553cc8c8f36e59782273c83e7d.zip
Remove public exports of gl_common and libc
Diffstat (limited to 'examples')
-rw-r--r--examples/support/mod.rs2
1 files changed, 1 insertions, 1 deletions
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();