Skip to content

Instantly share code, notes, and snippets.

@Yatekii
Created July 21, 2018 20:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save Yatekii/cda944210d262ba334400f1d265c69e0 to your computer and use it in GitHub Desktop.
Save Yatekii/cda944210d262ba334400f1d265c69e0 to your computer and use it in GitHub Desktop.
let mut device;
let mut factory;
panic::catch_unwind(|| {
let (d, f) = gfx_device_gl::create(epoxy::get_proc_addr);
device = d;
factory = f;
}).ok();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment