hal/gles: work around the clear shader bug

This commit is contained in:
Dzmitry Malyshau
2021-10-09 15:08:40 -04:00
committed by Dzmitry Malyshau
parent d48bc62826
commit 60bb2aaa6b
2 changed files with 9 additions and 3 deletions

View File

@@ -2,7 +2,11 @@
## wgpu-hal-0.11.1 (2021-10-09)
- Vulkan: fix NV optimus detection on Linux
- WebGL: fix querying storage-related limits
- GL:
- fix indirect dispatch buffers
- WebGL:
- fix querying storage-related limits
- work around a browser bug in the clear shader
## wgpu-0.11 (2021-10-07)
- Infrastructure:

View File

@@ -1,7 +1,9 @@
#version 300 es
precision lowp float;
uniform vec4 color;
//Hack: Some WebGL implementations don't find "color" otherwise.
uniform vec4 color_workaround;
out vec4 frag;
void main() {
frag = color;
}
frag = color + color_workaround;
}