You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
3771: Fix WebGL backend for wgpu-rs cube example r=kvark a=Frizi
Fixes "cube" example in wgpu-rs for webgl backend on Windows. Will also fix MacOS once gfx-rs/naga#936 gets included.
`delete_shader` is delayed after linking the program. Not doing that seems to be randomly triggering linking issues. I'm not exactly sure under what circumstances it tends to happen, but the fix made it reliable.
The most important fix is about texture filtering for intager textures. ANGLE decides to ignore integer textures if their filtering is kept as default. Instead, it silently substitutes an empty 1px placeholder texture into the shader binding. Forcing the integer textures to NEAREST filtering makes that problem go away.
Co-authored-by: Frizi <[email protected]>
0 commit comments