[−][src]Function glamour::gl_call::gl_get_error
pub fn gl_get_error() -> Option<GLenum>
Pop an error from the OpenGL error state.
Examples
let id = unsafe { gl::CreateShader(gl::LINEAR_MIPMAP_NEAREST) }; let error = gl_get_error(); assert_eq!(error.unwrap(), gl::INVALID_ENUM);