From: Thomas Hellstrom Date: Tue, 20 Jan 2009 10:13:38 +0000 (+0100) Subject: Fix store texel for argb4444. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;ds=sidebyside;h=7374285f07b673dcba1d1f47dd987c8ba7037bad;p=mesa.git Fix store texel for argb4444. --- diff --git a/src/mesa/main/texformat_tmp.h b/src/mesa/main/texformat_tmp.h index 673b715950a..5f0c674d4fb 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