Mesa (master): Fix store texel for argb8888_rev.

Thomas Hellstrom thomash at kemper.freedesktop.org
Tue Jan 20 10:30:04 UTC 2009


Module: Mesa
Branch: master
Commit: 5c84a1032c13a75b95e40bd316495b3351b324e1
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=5c84a1032c13a75b95e40bd316495b3351b324e1

Author: Thomas Hellstrom <thomas-at-tungstengraphics-dot-com>
Date:   Tue Jan 20 11:13:05 2009 +0100

Fix store texel for argb8888_rev.

---

 src/mesa/main/texformat_tmp.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/mesa/main/texformat_tmp.h b/src/mesa/main/texformat_tmp.h
index 197593d..673b715 100644
--- a/src/mesa/main/texformat_tmp.h
+++ b/src/mesa/main/texformat_tmp.h
@@ -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
 




More information about the mesa-commit mailing list