bevyengine / bevy

A refreshingly simple data-driven game engine built in Rust
https://bevyengine.org
Apache License 2.0
35.02k stars 3.43k forks source link

3d shapes web example crashes when enabling wireframes #14371

Closed aevyrie closed 1 month ago

aevyrie commented 1 month ago

Bevy version

https://bevyengine.org/examples/3d-rendering/3d-shapes/

WebGL and WebGPU backends are affected.

What you did

Press space.

What went wrong

Example freezes, logs show that the app is panicking.

panicked at /Users/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wgpu-0.20.1/src/backend/wgpu_core.rs:2996:5:
wgpu error: Validation Error

Caused by:
    In Device::create_render_pipeline
      note: label = `prepass_pipeline`
    Features Features(POLYGON_MODE_LINE) are required but not enabled on the device
mockersf commented 1 month ago

same as https://github.com/bevyengine/bevy/issues/14353, this can't work in wasm

fix would be to remove the ability to switch in wasm