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

index 197593df742260e59b8332e7b77721118a5b4eb2..673b715950abda7530c59a312d9ec64647f2a4a6 100644 (file)
@@ -694,7 +694,7 @@ static void store_texel_argb8888_rev(struct gl_texture_image *texImage,
 {
    const GLubyte *rgba = (const GLubyte *) texel;
    GLuint *dst = TEXEL_ADDR(GLuint, texImage, i, j, k, 1);
-   *dst = PACK_COLOR_8888(rgba[ACOMP], rgba[RCOMP], rgba[GCOMP], rgba[BCOMP]);
+   *dst = PACK_COLOR_8888(rgba[BCOMP], rgba[GCOMP], rgba[RCOMP], rgba[ACOMP]);
 }
 #endif