remove sokol leftovers

This commit is contained in:
Alula 2021-06-27 08:03:35 +02:00
parent d1ca07c297
commit fcf7b292b1
No known key found for this signature in database
GPG Key ID: 3E00485503A1D8BA
3 changed files with 1 additions and 8 deletions

View File

@ -26,7 +26,6 @@ opt-level = 3
default = ["scripting", "backend-sdl", "render-opengl", "ogg-playback", "exe"]
ogg-playback = ["lewton"]
backend-sdl = ["sdl2", "sdl2-sys"]
#backend-sokol = ["sokol"]
backend-glutin = ["winit", "glutin", "render-opengl"]
render-opengl = []
scripting = ["lua-ffi"]

View File

@ -74,17 +74,13 @@ pub trait BackendTexture {
fn draw(&mut self) -> GameResult;
}
#[allow(unreachable_code)]
pub fn init_backend() -> GameResult<Box<dyn Backend>> {
#[cfg(all(feature = "backend-glutin"))]
{
return crate::framework::backend_glutin::GlutinBackend::new();
}
#[cfg(feature = "backend-sokol")]
{
return crate::framework::backend_sokol::SokolBackend::new();
}
#[cfg(feature = "backend-sdl")]
{
return crate::framework::backend_sdl2::SDL2Backend::new();

View File

@ -6,8 +6,6 @@ pub mod backend_glutin;
mod gl;
#[cfg(feature = "backend-sdl")]
pub mod backend_sdl2;
#[cfg(feature = "backend-sokol")]
pub mod backend_sokol;
pub mod context;
pub mod error;
pub mod filesystem;