Skip to content

Instantly share code, notes, and snippets.

@durka
Forked from Yatekii/main.rs
Last active July 21, 2018 20:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save durka/632461304212086e7082b85e96f43d3e to your computer and use it in GitHub Desktop.
Save durka/632461304212086e7082b85e96f43d3e to your computer and use it in GitHub Desktop.
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