Skip to content

Instantly share code, notes, and snippets.

@durka
Forked from Yatekii/main.rs
Last active July 21, 2018 20:26
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