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 GitHub
parent c09a9f0c73
commit f3cf734659
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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();
}