Skip to content

Instantly share code, notes, and snippets.

@durka
Forked from Yatekii/main.rs
Last active Jul 21, 2018
Embed
What would you like to do?
let (device, factory) =
if let Ok((d, f)) = panic::catch_unwind(|| { gfx_device_gl::create(epoxy::get_proc_addr) }) {
(d, f)
} else {
return "ERROR";
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment