Fix store texel for argb4444.
authorThomas Hellstrom <thomas-at-tungstengraphics-dot-com>
Tue, 20 Jan 2009 10:13:38 +0000 (11:13 +0100)
committerThomas Hellstrom <thomas-at-tungstengraphics-dot-com>
Tue, 20 Jan 2009 10:13:38 +0000 (11:13 +0100)
src/mesa/main/texformat_tmp.h

index 673b715950abda7530c59a312d9ec64647f2a4a6..5f0c674d4fb2bcce95b603d05798161c8685a536 100644 (file)
@@ -848,7 +848,7 @@ static void store_texel_argb4444(struct gl_texture_image *texImage,
 {
    const GLubyte *rgba = (const GLubyte *) texel;
    GLushort *dst = TEXEL_ADDR(GLushort, texImage, i, j, k, 1);
-   *dst = PACK_COLOR_4444(rgba[RCOMP], rgba[GCOMP], rgba[BCOMP], rgba[ACOMP]);
+   *dst = PACK_COLOR_4444(rgba[ACOMP], rgba[RCOMP], rgba[GCOMP], rgba[BCOMP]);
 }
 #endif