Skip to content

Commit

Permalink
Set asset meta check mode to AssetMetaCheck::Never.
Browse files Browse the repository at this point in the history
As documented upstream in bevyengine/bevy#10623, bevy 0.12.1 can result in black screens on wasm if meta files are not available.  Setting the AssetMetaMode to AssetMetaChck::Never is a band-aid fix for this issue.
  • Loading branch information
maaku committed Jan 20, 2024
1 parent 46603f2 commit f09c0c2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")]

use atomcad::{platform::bevy::PlatformTweaks, AppPlugin, APP_NAME};
use bevy::asset::AssetMetaCheck;
use bevy::{
prelude::*,
window::{PresentMode, PrimaryWindow, WindowMode, WindowResolution},
Expand Down Expand Up @@ -253,6 +254,7 @@ fn main() {
// Platform-independent setup code.
app.insert_resource(WinitSettings::game())
.insert_resource(Msaa::Off)
.insert_resource(AssetMetaCheck::Never)
.insert_resource(ClearColor(Color::BLACK))
.add_plugins(DefaultPlugins.set(WindowPlugin {
primary_window: Some(Window {
Expand Down

0 comments on commit f09c0c2

Please sign in to comment.