pub fn to_gl_err(gl: &GlContext) -> GLError