Skip to content

Instantly share code, notes, and snippets.

@killballad
Created September 8, 2013 07:10
Show Gist options
  • Save killballad/6482593 to your computer and use it in GitHub Desktop.
Save killballad/6482593 to your computer and use it in GitHub Desktop.
macro_rules! glcheck(
($e:expr) => (
let result = $e;
let err = gl::get_error();
if (err != gl::NO_ERROR) {
fail!(gl_error_to_str(err));
}
result
)
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment