ir_constant_expression: Fix broken code for floating point modulus.
authorKenneth Graunke <kenneth@whitecape.org>
Fri, 23 Jul 2010 00:44:34 +0000 (17:44 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Fri, 23 Jul 2010 00:45:45 +0000 (17:45 -0700)
commit3e882ec84a2493da74c55d105010a37de521e593
tree6414b900acfcc620643cfbf65c89d4c7e7d9c2de
parent0a71527dabb7086e81d488451cf4a5cd90380938
ir_constant_expression: Fix broken code for floating point modulus.

It's supposed to be x - y * floor(x/y), not (x - y) * floor(x/y).
src/glsl/ir_constant_expression.cpp