#App running fine on chromium but not on firefox

12 messages · Page 1 of 1 (latest)

rose lotus
#

Hello, my very basic app (just imports a gltf) which uses Trunk and leptos is failing only on firefox. I assume this is because of maybe webgpu? Is there a way to turn it off? Thanks

barren hedge
#

Webgpu is not supported by Firefox AFAIK you might have to switch to webgl

rose lotus
#

I tried setting it like:

pub fn start() {
    App::new()
        .insert_resource(DirectionalLightShadowMap { size: 4096 })
        .insert_resource(ClearColor(Color::linear_rgba(
             0.,
             0.,
             0.,
             0.,
        )))
        .add_plugins(DefaultPlugins
        .set(
            AssetPlugin {
                meta_check: AssetMetaCheck::Never,
                ..default()
            })
        .set(
            WindowPlugin {
            primary_window: Some(Window {
                transparent: true,
                resizable: true,
                canvas: Some("#threed".to_string()),
                ..default()
            }),
            ..default()
        })
        .set(RenderPlugin{
                render_creation: RenderCreation::Automatic(WgpuSettings {
                    backends: Some(Backends::GL),
                    ..default()
                }),
                ..default()
            })
        )
}
``` But it still throws the same errors
#

Does webGL also not work?

#

can't rely on any piece of software novadays huh...

barren hedge
#

Perhaps firefox support is still rough and requires more improvements

rose lotus
#

I fixed it temporarily by changing a browser setting, as mentioed in the gh discussion