summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorXiang, Haihao <[email protected]>2008-02-15 15:20:45 +0800
committerXiang, Haihao <[email protected]>2008-02-15 15:20:45 +0800
commit7eef52e975e852207ee840c74cd822c8f8c90a01 (patch)
tree86625e9c5449209c998b3bd72ef16b8fa25348ff /src
parent6d48779c7e5c9002d1bec4b1266ca05a474218ef (diff)
i915: set fogcoord to (f,0,0,1). fix #10788 issue on 915.
Diffstat (limited to 'src')
-rw-r--r--src/mesa/drivers/dri/i915/i915_fragprog.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i915/i915_fragprog.c b/src/mesa/drivers/dri/i915/i915_fragprog.c
index b475fb632f8..1876218ca02 100644
--- a/src/mesa/drivers/dri/i915/i915_fragprog.c
+++ b/src/mesa/drivers/dri/i915/i915_fragprog.c
@@ -107,7 +107,7 @@ src_vector(struct i915_fragment_program *p,
break;
case FRAG_ATTRIB_FOGC:
src = i915_emit_decl(p, REG_TYPE_T, T_FOG_W, D0_CHANNEL_W);
- src = swizzle(src, W, W, W, W);
+ src = swizzle(src, W, ZERO, ZERO, ONE);
break;
case FRAG_ATTRIB_TEX0:
case FRAG_ATTRIB_TEX1: