summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri/i915/i915_texprog.c
diff options
context:
space:
mode:
authorKeith Whitwell <keith@tungstengraphics.com>2004-08-31 11:36:14 +0000
committerKeith Whitwell <keith@tungstengraphics.com>2004-08-31 11:36:14 +0000
commit535408addad103421f8cc82705385de754871963 (patch)
tree20a5ba3653d74e2e93aee83c9e011997d93ea165 /src/mesa/drivers/dri/i915/i915_texprog.c
parentc372549036c8784e8e86d040f13685faa76f6d4d (diff)
The i915 driver was merged after EMIT_*_BGR bug was fixed. This brings
the driver into line with the correct meaning of those symbols and fixes color corruptions.
Diffstat (limited to 'src/mesa/drivers/dri/i915/i915_texprog.c')
-rw-r--r--src/mesa/drivers/dri/i915/i915_texprog.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/i915/i915_texprog.c b/src/mesa/drivers/dri/i915/i915_texprog.c
index 32c7e4b9ee..ecf3a38a20 100644
--- a/src/mesa/drivers/dri/i915/i915_texprog.c
+++ b/src/mesa/drivers/dri/i915/i915_texprog.c
@@ -593,12 +593,12 @@ void i915ValidateTextureProgram( i915ContextPtr i915 )
}
intel->coloroffset = offset / 4;
- EMIT_ATTR( _TNL_ATTRIB_COLOR0, EMIT_4UB_4F_RGBA, S4_VFMT_COLOR, 4 );
+ EMIT_ATTR( _TNL_ATTRIB_COLOR0, EMIT_4UB_4F_BGRA, S4_VFMT_COLOR, 4 );
if (index & (_TNL_BIT_COLOR1|_TNL_BIT_FOG)) {
if (index & _TNL_BIT_COLOR1) {
intel->specoffset = offset / 4;
- EMIT_ATTR( _TNL_ATTRIB_COLOR1, EMIT_3UB_3F_RGB, S4_VFMT_SPEC_FOG, 3 );
+ EMIT_ATTR( _TNL_ATTRIB_COLOR1, EMIT_3UB_3F_BGR, S4_VFMT_SPEC_FOG, 3 );
} else
EMIT_PAD( 3 );