Skip to content

Commit

Permalink
hal/gles: work around the clear shader bug
Browse files Browse the repository at this point in the history
  • Loading branch information
kvark committed Oct 9, 2021
1 parent d48bc62 commit 60bb2aa
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
6 changes: 4 additions & 2 deletions wgpu-hal/src/gles/shader_clear.frag
Original file line number Diff line number Diff line change
@@ -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;
}

0 comments on commit 60bb2aa

Please sign in to comment.