aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/translate/translate_generic.c
diff options
context:
space:
mode:
authorKeith Whitwell <[email protected]>2008-04-15 14:40:16 +0100
committerKeith Whitwell <[email protected]>2008-04-15 14:40:16 +0100
commit59f68f36c4ad37496e3ed5d7d3142e3ae35dd351 (patch)
treed905eed3a32a0ac956842ff9b335961cac5cfab7 /src/gallium/auxiliary/translate/translate_generic.c
parentc81bbab6f6c0413996799800cac6fb49a698e765 (diff)
translate: typo in emit_B8G8R8A8_UNORM
Diffstat (limited to 'src/gallium/auxiliary/translate/translate_generic.c')
-rw-r--r--src/gallium/auxiliary/translate/translate_generic.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gallium/auxiliary/translate/translate_generic.c b/src/gallium/auxiliary/translate/translate_generic.c
index 643f6430c5a..7e75ba8365e 100644
--- a/src/gallium/auxiliary/translate/translate_generic.c
+++ b/src/gallium/auxiliary/translate/translate_generic.c
@@ -231,10 +231,10 @@ static void
emit_B8G8R8A8_UNORM( const float *attrib, void *ptr)
{
ubyte *out = (ubyte *)ptr;
- out[2] = TO_8_UNORM(out[0]);
- out[1] = TO_8_UNORM(out[1]);
- out[0] = TO_8_UNORM(out[2]);
- out[3] = TO_8_UNORM(out[3]);
+ out[2] = TO_8_UNORM(attrib[0]);
+ out[1] = TO_8_UNORM(attrib[1]);
+ out[0] = TO_8_UNORM(attrib[2]);
+ out[3] = TO_8_UNORM(attrib[3]);
}
static void