summaryrefslogtreecommitdiffstats
path: root/src/glx
diff options
context:
space:
mode:
authorTimothy Arceri <[email protected]>2017-09-21 13:55:56 +1000
committerTimothy Arceri <[email protected]>2017-10-10 10:05:37 +1100
commitd24e16fe1f63d8f666dd57cfddf8340d439b391a (patch)
tree12f1fb8a784408c265252629832509782c72cb55 /src/glx
parentab23b759f241a4e2247efa28bd28a5f20149c70b (diff)
glsl: check if induction var incremented before use in terminator
do-while loops can increment the starting value before the condition is checked. e.g. do { ndx++; } while (ndx < 3); This commit changes the code to detect this and reduces the iteration count by 1 if found. V2: fix terminator spelling Reviewed-by: Nicolai Hähnle <[email protected]> Reviewed-by: Elie Tournier <[email protected]> Tested-by: Dieter Nützel <[email protected]>
Diffstat (limited to 'src/glx')
0 files changed, 0 insertions, 0 deletions