Fix broken code behind wasm feature flag in blend_modes example (#7945)

This commit is contained in:
ira 2023-03-07 14:55:34 +01:00 committed by François
parent 289fd1d0f2
commit 1981b2b862

View file

@ -24,7 +24,7 @@ fn main() {
// Since this example uses HDR, we must disable MSAA for WASM builds, at least
// until WebGPU is ready and no longer behind a feature flag in Web browsers.
#[cfg(target_arch = "wasm32")]
app.insert_resource(Msaa { samples: 1 }); // Default is 4 samples (MSAA on)
app.insert_resource(Msaa::Off);
app.run();
}