]> git.tdb.fi Git - libs/gl.git/commit
Process loop initialization outside the body in UnusedVariableRemover
authorMikko Rasa <tdb@tdb.fi>
Mon, 8 Nov 2021 00:01:26 +0000 (02:01 +0200)
committerMikko Rasa <tdb@tdb.fi>
Mon, 8 Nov 2021 00:01:26 +0000 (02:01 +0200)
commit241cf36a6d7735706804bb3c517529bbe078f1ee
tree709320630b4398e44638392184a77ecf89fa8cae
parent7ab4261d281c7885bbdfb0a782ed231b2cd08293
Process loop initialization outside the body in UnusedVariableRemover

If it's processed inside the scope of the loop, assignments to the
iteration variable may get discarded.
source/glsl/optimize.cpp
tests/glsl/complex_loop_increment.glsl [new file with mode: 0644]