glsl2: Fix the type of (1.0 - arg2) for mix(gen, gen, float).
authorEric Anholt <eric@anholt.net>
Thu, 22 Jul 2010 21:25:26 +0000 (14:25 -0700)
committerEric Anholt <eric@anholt.net>
Thu, 22 Jul 2010 21:25:26 +0000 (14:25 -0700)
commite65dfa89eef86be127d788ecd5bd23c35c8fbbe4
treedad1148347195064db7fad42fa2ed8befde7928a
parent8ec0b8187ea695353c75eed7314e86344df60e5a
glsl2: Fix the type of (1.0 - arg2) for mix(gen, gen, float).

Previously, we'd constant-fold up a value of vec4(1.0 - arg2, 0, 0, 0).

Fixes:
glsl1-mix(vec4) function
src/glsl/builtin_function.cpp
src/glsl/builtins/110/mix