Update for rustc

This commit is contained in:
Pierre Krieger 2014-12-23 17:12:29 +01:00
parent 5a8982377b
commit dbb82968ba
3 changed files with 20 additions and 14 deletions

View file

@ -23,7 +23,7 @@ fn resize_callback(width: uint, height: uint) {
fn main() {
let mut window = glutin::Window::new().unwrap();
window.set_title("A fantastic window!");
window.set_window_resize_callback(Some(resize_callback));
window.set_window_resize_callback(Some(resize_callback as fn(uint, uint)));
unsafe { window.make_current() };
let context = support::load(&window);