pub fn check_for_gl_errors() -> Vec<GlError> {
    let mut result = vec![];

    // Read all of ther errors that are set in the current context
    while let Some(error) = check_next_gl_error() {
        result.push(error)
    }

    result
}
///
/// Returns all errors that are currently set in a GL context
///
Returns all errors that are currently set in a GL context
Returns all errors that are currently set in a GL context
pub fn check_for_gl_errors() -> Vec<GlError> {
    let mut result = vec![];
    // Read all of ther errors that are set in the current context
    while let Some(error) = check_next_gl_error() {
        result.push(error)
    }
    result
}
pub fn check_for_gl_errors ( ) -> Vec < GlError > { let mut result = vec ! [ ] ; // Read all of ther errors that are set in the current context while let Some ( error ) = check_next_gl_error ( ) { result . push ( error ) } result }
Returns all errors that are currently set in a GL context
Returns all errors that are currently set in a GL context