summaryrefslogtreecommitdiffstats
path: root/src/mesa/shader/programopt.c
diff options
context:
space:
mode:
authorThierry Reding <[email protected]>2006-11-22 19:50:34 +0000
committerThierry Reding <[email protected]>2006-11-22 19:50:34 +0000
commitdb164ab514beb5eca780e383c04f5ad90b6e7bd7 (patch)
treee8f3580c1b900dafa8bfafb0a56c998142e25bf8 /src/mesa/shader/programopt.c
parentc72ef1773120a2ce527b0f3bea5f16a42ee2340d (diff)
Update to latest upstream release candidate.
Diffstat (limited to 'src/mesa/shader/programopt.c')
-rw-r--r--src/mesa/shader/programopt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/shader/programopt.c b/src/mesa/shader/programopt.c
index 172d373b578..783177739d1 100644
--- a/src/mesa/shader/programopt.c
+++ b/src/mesa/shader/programopt.c
@@ -172,7 +172,7 @@ _mesa_append_fog_code(GLcontext *ctx, struct gl_fragment_program *fprog)
fogVals[1] = 1.0 / SQRTF(log(2.0));
fogVals[2] = 0.0;
fogVals[3] = 0.0;
- fogConsts = _mesa_add_unnamed_constant(fprog->Base.Parameters, fogVals);
+ fogConsts = _mesa_add_unnamed_constant(fprog->Base.Parameters, fogVals, 4);
/* Scan program to find where result.color is written */
inst = newInst;