remove sokol leftovers
This commit is contained in:
parent
d1ca07c297
commit
fcf7b292b1
|
@ -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"]
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue