summaryrefslogtreecommitdiffstats
path: root/src/mesa/main
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2009-08-18 17:55:27 -0600
committerBrian Paul <[email protected]>2009-08-18 17:55:27 -0600
commit73fc09a7bf5c63b595251dc10997891c72ecb119 (patch)
tree3c4a75704a91eb79e2afb2521debff4bd49c3a9d /src/mesa/main
parente4aa62a6ce7067269c0befb984bcb8136420cb2c (diff)
parent3097d7dbf8b6acd2e5f4fd2adf45c5fb85f73952 (diff)
Merge branch 'mesa_7_5_branch'
Diffstat (limited to 'src/mesa/main')
-rw-r--r--src/mesa/main/ffvertex_prog.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/main/ffvertex_prog.c b/src/mesa/main/ffvertex_prog.c
index 80dde4b5aa2..8e21a27f897 100644
--- a/src/mesa/main/ffvertex_prog.c
+++ b/src/mesa/main/ffvertex_prog.c
@@ -1306,7 +1306,9 @@ static void build_fog( struct tnl_program *p )
input = swizzle1(register_input(p, VERT_ATTRIB_FOG), X);
}
+ /* result.fog = {abs(f),0,0,1}; */
emit_op1(p, OPCODE_ABS, fog, WRITEMASK_X, input);
+ emit_op1(p, OPCODE_MOV, fog, WRITEMASK_YZW, get_identity_param(p));
}