-
-
Notifications
You must be signed in to change notification settings - Fork 3.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GL backend crashing #7320
Comments
You're right that the root of this issue is gfx-rs/wgpu#4455, which is triggered by
As you can see this code isn't triggered if NO_ARRAY_TEXTURES_SUPPORT is set, so
or Unfortunately this is not exposed in a way that can be set at runtime. But maybe we could fix that and enable |
Enabling the webgl feature works on my machine. Though, I'm not exactly sure what the ramifications would be of enabling webgl for running on the desktop. Curiously, it changes the color of the background from black (vulkan) to grey (gl). Maybe that's an intended consequence though. I'm not really a vulkan/gl/webgl person. |
The biggest change is using a Cube texture instead of a CubeArray texture, hence only supporting one shadow. The rest is lower defaults and higher alignment, and some hacks: |
With issue #5171 fixed the error about the
|
@BartBM any luck? I'm getting the same issue in Bevy 0.13.0. My computer is Lenovo P1 Gen 5 with NVIDIA A2000 graphics card running Manjaro i3. Drivers are:
|
I get that error when running the examples in 0.13.0 but my lighting looks correct. I think it might have to do with my graphics drivers not working on Manjaro since it is an intel/nvidia laptop with the Prime/optimus switchable graphics technology. I installed with proprietary drivers. I tried running the examples with prime-run and without, both of which give the same result. EDIT: |
Bevy version
v0.9.1
[Optional] Relevant system information
Debian 11
rustc 1.65/1.67
What you did
WGPU_BACKEND=gl cargo run --example custom_skinned_mesh
I was trying to use the gl backend, as I'm encountering issue gfx-rs/naga#1908, with all examples in vulkan seemingly continuing to run in the background, after I close my x11 window with alt+f4.
What went wrong
The app crashes. I found this: gfx-rs/wgpu#4455, but it doesn't seem like there's really any action to be taken around it.
Based on people's comments it sounds like intel integrated graphics under x11 are problematic with both vulkan and gl.
The text was updated successfully, but these errors were encountered: