summaryrefslogtreecommitdiffstats
path: root/src/mesa/shader/programopt.c
diff options
context:
space:
mode:
authorBrian <[email protected]>2007-04-16 15:09:39 -0600
committerBrian <[email protected]>2007-04-16 15:09:39 -0600
commit1560de2c3c7f9d4e07b34e805e649769ca5a0cbe (patch)
treeee40d14f5e6bc333d168a49ac7d8113ec48a5f37 /src/mesa/shader/programopt.c
parent921b0084198168effa08f688f078249ae29ee6c3 (diff)
need to clamp MAD for linear fog
Diffstat (limited to 'src/mesa/shader/programopt.c')
-rw-r--r--src/mesa/shader/programopt.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/shader/programopt.c b/src/mesa/shader/programopt.c
index f1d8ce30654..fc5b0497fe3 100644
--- a/src/mesa/shader/programopt.c
+++ b/src/mesa/shader/programopt.c
@@ -199,6 +199,7 @@ _mesa_append_fog_code(GLcontext *ctx, struct gl_fragment_program *fprog)
inst->SrcReg[2].File = PROGRAM_STATE_VAR;
inst->SrcReg[2].Index = fogPRefOpt;
inst->SrcReg[2].Swizzle = SWIZZLE_Y;
+ inst->SaturateMode = SATURATE_ZERO_ONE;
inst++;
}
else {