rust/physfs-rs/src/physfs/util.rs
author S.D.
Tue, 29 Nov 2022 00:49:05 +0200
changeset 15924 3de00d203178
parent 14456 a1613788130d
permissions -rw-r--r--
Don't enable GL_LINE_SMOOTH for AMD GPUs as a workround for lines and circles not being rendered correctly

use std::io::{ Error, ErrorKind };
use super::PhysFSContext;

pub fn physfs_error_as_io_error() -> Error {
    Error::new(ErrorKind::Other,
               &format!("PhysicsFS Error: `{}`", PhysFSContext::get_last_error())[..])
}