Mesa (master): Fix store texel for argb4444.
Thomas Hellstrom
thomash at kemper.freedesktop.org
Tue Jan 20 10:30:04 UTC 2009
Module: Mesa
Branch: master
Commit: 7374285f07b673dcba1d1f47dd987c8ba7037bad
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=7374285f07b673dcba1d1f47dd987c8ba7037bad
Author: Thomas Hellstrom <thomas-at-tungstengraphics-dot-com>
Date: Tue Jan 20 11:13:38 2009 +0100
Fix store texel for argb4444.
---
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 673b715..5f0c674 100644
--- a/src/mesa/main/texformat_tmp.h
+++ b/src/mesa/main/texformat_tmp.h
@@ -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
More information about the mesa-commit
mailing list