fn to_render_error(error: cgl::CGLError) -> Result<(), RenderInitError> {
    match error {
        cgl::kCGLNoError    => Ok(()),
        _                   => Err(RenderInitError::CannotStartGraphicsDriver)
    }
}
///
/// Converts a CGLError into a result
///
Converts a CGLError into a result
Converts a CGLError into a result
fn to_render_error(error: cgl::CGLError) -> Result<(), RenderInitError> {
    match error {
        cgl::kCGLNoError    => Ok(()),
        _                   => Err(RenderInitError::CannotStartGraphicsDriver)
    }
}
fn to_render_error ( error : cgl :: CGLError ) -> Result < ( ) , RenderInitError > { match error { cgl :: kCGLNoError => Ok ( ( ) ) , _ => Err ( RenderInitError :: CannotStartGraphicsDriver ) } }
Converts a CGLError into a result
Converts a CGLError into a result
error
cgl::CGLError