bevyengine / bevy

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

WebGL2 deferred rendering breaks when anisotropy is enabled #14101

Open DGriffin91 opened 5 days ago

DGriffin91 commented 5 days ago

Bevy version 5876352206d1bcea792825bf013eb212383b73d6 and v0.14.0-rc.4

The deferred rendering example is broken on WebGL2.

The issue was introduced at https://github.com/bevyengine/bevy/commit/df8ccb873582fa3193d0e570c2534b0bd33316b3 with https://github.com/bevyengine/bevy/pull/13450

panicked at [...]\.cargo\registry\src\index.crates.io-6f17d22bba15001f\wgpu-hal-0.19.4\src\gles\command.rs:756:21:
index out of bounds: the len is 16 but the index is 16
alice-i-cecile commented 5 days ago

We should be sure to test this in concert with https://github.com/bevyengine/bevy/pull/14048

DGriffin91 commented 5 days ago

@alice-i-cecile This works with https://github.com/bevyengine/bevy/pull/14048 with the pbr_anisotropy_texture feature disabled (default), and has the same issue with it enabled.

alice-i-cecile commented 5 days ago

Thanks for checking: that makes sense.

BD103 commented 5 days ago

Last time this was solved by disabling the offending feature in #11909. @pcwalton, you may be interested in this.

pcwalton commented 5 days ago

Nothing to do here but land the anisotropy disable PR.

alice-i-cecile commented 5 days ago

Fixed enough for now with #14048 merged.