summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/texenvprogram.c
diff options
context:
space:
mode:
authorBrian <[email protected]>2007-10-23 10:54:50 -0600
committerBrian <[email protected]>2007-10-23 10:54:50 -0600
commit112a1580f658948e553fe04399a20958dca67c16 (patch)
tree94d1fe79b5641c643d08fa81965907e1980c7f3a /src/mesa/main/texenvprogram.c
parente69943e6dda102df8418a8261b95155350181a2f (diff)
properly init dst reg's CondMask/Swizzle fields
Diffstat (limited to 'src/mesa/main/texenvprogram.c')
-rw-r--r--src/mesa/main/texenvprogram.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/main/texenvprogram.c b/src/mesa/main/texenvprogram.c
index 2614440a747..abc25671341 100644
--- a/src/mesa/main/texenvprogram.c
+++ b/src/mesa/main/texenvprogram.c
@@ -462,8 +462,8 @@ static void emit_dst( struct prog_dst_register *dst,
dst->File = ureg.file;
dst->Index = ureg.idx;
dst->WriteMask = mask;
- dst->CondMask = 0;
- dst->CondSwizzle = 0;
+ dst->CondMask = COND_TR; /* always pass cond test */
+ dst->CondSwizzle = SWIZZLE_NOOP;
}
static struct prog_instruction *