fix(web): force WebGL2 backend

Affected Chromium adapters fail after selecting WebGPU even when packed renderer paths are forced. Use WebGL2 for the web app and let device limits select renderer tiers.\n\nRefs #788
This commit is contained in:
Hakan Seven 2026-08-19 19:04:58 +03:00
commit c8840e2706
3 changed files with 3 additions and 4 deletions

View file

@ -3723,6 +3723,7 @@ pub fn run_web() -> iced::Result {
.subscription(OpenCADStudio::subscription)
.title(|_state: &OpenCADStudio| "Open CAD Studio".to_string())
.theme(|state: &OpenCADStudio| state.active_theme.clone())
.backend(iced::Backend::Hardware(iced::backend::Api::OpenGL))
.font(iced_aw::ICED_AW_FONT_BYTES)
.run()
}