gl::error

Function check

source
pub fn check<F: Fn() -> T, T>(f: F) -> Result<T>
Expand description

A utility function for calling an OpenGL function and checking for errors using glGetError.

ยงParameters

  • f - The function to call