From: Brian Paul Date: Sat, 17 Sep 2011 16:50:07 +0000 (-0600) Subject: mesa: s/short/ushort/ in unpack_SIGNED_RGBA_16() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3b29631c335bfc4a09c302cfdb7a993097c75096;p=mesa.git mesa: s/short/ushort/ in unpack_SIGNED_RGBA_16() --- diff --git a/src/mesa/main/format_unpack.c b/src/mesa/main/format_unpack.c index c5146f72da0..02b57205ed5 100644 --- a/src/mesa/main/format_unpack.c +++ b/src/mesa/main/format_unpack.c @@ -947,7 +947,7 @@ unpack_SIGNED_RGBA_16(const void *src, GLfloat dst[4]) static void unpack_RGBA_16(const void *src, GLfloat dst[4]) { - const GLshort *s = (const GLshort *) src; + const GLushort *s = (const GLushort *) src; dst[RCOMP] = USHORT_TO_FLOAT( s[0] ); dst[GCOMP] = USHORT_TO_FLOAT( s[1] ); dst[BCOMP] = USHORT_TO_FLOAT( s[2] );