aboutsummaryrefslogtreecommitdiffstats
path: root/examples/support
diff options
context:
space:
mode:
authortomaka <pierre.krieger1708@gmail.com>2015-11-09 10:10:22 +0100
committertomaka <pierre.krieger1708@gmail.com>2015-11-09 10:10:22 +0100
commitbfc46c56703eab9404651ea9dd4a195acbe8c784 (patch)
treebf8f195f8b38c7f6d78d917fe95ed768bcaaefc5 /examples/support
parent439d25168e0145bb563c2675ce490c521448f4ba (diff)
parentb02265fa1103c526c365d7768e3c8ae3633cf4cf (diff)
downloadglutin-bfc46c56703eab9404651ea9dd4a195acbe8c784.tar.gz
glutin-bfc46c56703eab9404651ea9dd4a195acbe8c784.zip
Merge pull request #652 from tomaka/rem-gl-common
[Breaking change] Remove public exports of gl_common and libc
Diffstat (limited to 'examples/support')
-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();