mirror of
https://github.com/encounter/rust-sdl2.git
synced 2026-07-10 21:18:41 -07:00
Add missing unwrap
This commit is contained in:
committed by
Cobrand
parent
d18a82aa4b
commit
085d0679e6
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user