Skip to content

Commit

Permalink
Fix GLFW example
Browse files Browse the repository at this point in the history
  • Loading branch information
rminderhoud committed Mar 6, 2018
1 parent 414f6c1 commit cd40200
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gl/README.md
Expand Up @@ -30,10 +30,10 @@ context library, This is how it would look using [glfw-rs]
// the supplied function must be of the type:
// `&fn(symbol: &'static str) -> *const std::os::raw::c_void`
// `window` is a glfw::Window
gl::load_with(|s| window.get_proc_address(s));
gl::load_with(|s| window.get_proc_address(s) as *const _);

// loading a specific function pointer
gl::Viewport::load_with(|s| window.get_proc_address(s));
gl::Viewport::load_with(|s| window.get_proc_address(s) as *const _);
```

Calling a function that has not been loaded will result in a failure like:
Expand Down

0 comments on commit cd40200

Please sign in to comment.