Skip to content
Snippets Groups Projects
Verified Commit e68d154f authored by Louis's avatar Louis :fire:
Browse files

Revert fetching asset_io on wasm

parent b542973e
No related branches found
No related tags found
No related merge requests found
...@@ -32,6 +32,7 @@ impl AssetLoader for TTFLoader { ...@@ -32,6 +32,7 @@ impl AssetLoader for TTFLoader {
load_context: &'a mut LoadContext, load_context: &'a mut LoadContext,
) -> BoxedFuture<'a, Result<(), anyhow::Error>> { ) -> BoxedFuture<'a, Result<(), anyhow::Error>> {
Box::pin(async move { Box::pin(async move {
#[cfg(not(target_family = "wasm"))]
let asset_io = load_context let asset_io = load_context
.asset_io() .asset_io()
.downcast_ref::<FileAssetIo>(); .downcast_ref::<FileAssetIo>();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment