Skip to content

Fix WGPU backend when using chromium+linux (webgl only)#2830

Closed
EleDiaz wants to merge 1 commit intoiced-rs:masterfrom
EleDiaz:chrome-linux-fix
Closed

Fix WGPU backend when using chromium+linux (webgl only)#2830
EleDiaz wants to merge 1 commit intoiced-rs:masterfrom
EleDiaz:chrome-linux-fix

Conversation

@EleDiaz
Copy link
Contributor

@EleDiaz EleDiaz commented Mar 6, 2025

When using the WGPU backend on chromium with Linux, the instance tries to get the adapter, which is null (due to the lack of support by the browser).

So, this change forces the WebGL on browser when WebGPU is unsupported.

And the source of this wgpu function give more details about it.
https://docs.rs/wgpu/latest/wgpu/util/fn.is_browser_webgpu_supported.html

@hecrj
Copy link
Member

hecrj commented Nov 21, 2025

I believe this was fixed by #2686.

@hecrj hecrj closed this Nov 21, 2025
@hecrj hecrj added this to the 0.14 milestone Nov 21, 2025
@hecrj hecrj added bug Something isn't working rendering web wgpu fix labels Nov 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments