From: Brian Paul Date: Fri, 13 Jan 2012 16:41:35 +0000 (-0700) Subject: mesa: s/GLushort/GLubyte/ in pack_ubyte_AL44() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b0af16abf1153da243b856e55f59ca1945860f47;p=mesa.git mesa: s/GLushort/GLubyte/ in pack_ubyte_AL44() The AL44 format occupies one byte, not two. NOTE: This is a candidate for the 8.0 branch. Reviewed-by: José Fonseca --- diff --git a/src/mesa/main/format_pack.c b/src/mesa/main/format_pack.c index 0982c9af4e9..85b2c691c54 100644 --- a/src/mesa/main/format_pack.c +++ b/src/mesa/main/format_pack.c @@ -636,7 +636,7 @@ pack_float_ARGB1555_REV(const GLfloat src[4], void *dst) static void pack_ubyte_AL44(const GLubyte src[4], void *dst) { - GLushort *d = ((GLushort *) dst); + GLubyte *d = ((GLubyte *) dst); *d = PACK_COLOR_44(src[ACOMP], src[RCOMP]); }