From: Keith Whitwell Date: Tue, 15 Apr 2008 13:40:16 +0000 (+0100) Subject: translate: typo in emit_B8G8R8A8_UNORM X-Git-Tag: 062012170305~17580^2~390^2~1867 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=59f68f36c4ad37496e3ed5d7d3142e3ae35dd351;p=profile%2Fivi%2Fmesa.git translate: typo in emit_B8G8R8A8_UNORM --- diff --git a/src/gallium/auxiliary/translate/translate_generic.c b/src/gallium/auxiliary/translate/translate_generic.c index 643f643..7e75ba8 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