]> git.tdb.fi Git - libs/gl.git/commit
Fix sizing of implicitly sized arrays
authorMikko Rasa <tdb@tdb.fi>
Sun, 16 Jul 2023 17:29:25 +0000 (20:29 +0300)
committerMikko Rasa <tdb@tdb.fi>
Sun, 16 Jul 2023 23:15:44 +0000 (02:15 +0300)
commitbce9fffb1c658c076a026236c6ecd99b9503d094
treeea218526ac9218c7c69676329bf3b5b6999b0286
parent64b593f1c3532f30753713e2e0bf5c43ea6f5c07
Fix sizing of implicitly sized arrays

Max index was being initialized to 0, so the sizing code thought every
array was being accessed with a literal 0.
source/glsl/generate.cpp
tests/glsl/unsized_array_access.glsl [new file with mode: 0644]