mirror of
https://github.com/italicsjenga/vello.git
synced 2025-01-10 20:51:29 +11:00
Fix uninitialized variable
This commit is contained in:
parent
178761dcb3
commit
8af4707525
Binary file not shown.
|
@ -100,7 +100,7 @@ void main() {
|
||||||
// Scan the tag monoid
|
// Scan the tag monoid
|
||||||
TagMonoid local_tm = reduce_tag(tag_word);
|
TagMonoid local_tm = reduce_tag(tag_word);
|
||||||
sh_tag[gl_LocalInvocationID.x] = local_tm;
|
sh_tag[gl_LocalInvocationID.x] = local_tm;
|
||||||
for (uint i; i < LG_WG_SIZE; i++) {
|
for (uint i = 0; i < LG_WG_SIZE; i++) {
|
||||||
barrier();
|
barrier();
|
||||||
if (gl_LocalInvocationID.x >= (1u << i)) {
|
if (gl_LocalInvocationID.x >= (1u << i)) {
|
||||||
TagMonoid other = sh_tag[gl_LocalInvocationID.x - (1u << i)];
|
TagMonoid other = sh_tag[gl_LocalInvocationID.x - (1u << i)];
|
||||||
|
|
Loading…
Reference in a new issue