Commit 7374285f authored by Thomas Hellstrom's avatar Thomas Hellstrom

Fix store texel for argb4444.

parent 5c84a103
......@@ -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]);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment