Add missing unwrap

This commit is contained in:
Mateusz 'Haggus' Mrowiec
2017-10-04 15:54:59 +02:00
committed by Cobrand
parent d18a82aa4b
commit 085d0679e6
+2 -1
View File
@@ -354,7 +354,8 @@ let window = video_subsystem.window("Window", 800, 600)
.unwrap();
let canvas = window.into_canvas()
.index(find_sdl_gl_driver().unwrap())
.build();
.build()
.unwrap();
gl::load_with(|name| video_subsystem.gl_get_proc_address(name) as *const _);
canvas.window().gl_set_context_to_current();