Open LeStahL opened 1 month ago
I think your reading of the spec here is correct and glslang is incorrectly producing an error here, as the inner v
should have its scope start right after the first semicolon of the for loop and shadow the outer v
.
Hi!
The shader
seems to get identified as invalid by
glslangValidator
although it is valid (see specification).Output of
glslangValidator
:I use
Glslang Version: 11:14.3.0
to reproduce.(Related to https://github.com/laurentlb/shader-minifier/issues/435).