Skip to content

Commit

Permalink
Fix compilation without audio feature
Browse files Browse the repository at this point in the history
  • Loading branch information
kuviman committed Jun 18, 2024
1 parent b887e90 commit 9a3a485
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ geng-ui = { version = "0.18", path = "crates/geng-ui" }
geng-draw2d = { version = "0.18", path = "crates/geng-draw2d" }
geng-obj = { version = "0.18", path = "crates/geng-obj" }
geng-debug-overlay = { version = "0.18", path = "crates/geng-debug-overlay", package = "geng-debug_overlay" }
geng-asset = { version = "0.18", path = "crates/geng-asset" }
geng-asset = { version = "0.18", path = "crates/geng-asset", default-features = false }
geng-asset-derive = { version = "0.18", path = "crates/geng-asset/derive" }
geng-texture-atlas = { version = "0.18", path = "crates/geng-texture-atlas" }

Expand Down Expand Up @@ -151,7 +151,7 @@ targets = ["x86_64-unknown-linux-gnu", "wasm32-unknown-unknown"]

[features]
default = ["audio"]
audio = ["dep:geng-audio"]
audio = ["dep:geng-audio", "geng-asset/audio"]

[dev-dependencies]
gltf.workspace = true
Expand Down
1 change: 1 addition & 0 deletions src/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ impl Geng {
&self.inner.window
}

#[cfg(feature = "audio")]
pub fn audio(&self) -> &Audio {
&self.inner.audio
}
Expand Down

0 comments on commit 9a3a485

Please sign in to comment.