aboutsummaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
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();