Mesa (master): mesa: s/short/ushort/ in unpack_SIGNED_RGBA_16()

Brian Paul brianp at kemper.freedesktop.org
Sat Sep 17 16:51:19 UTC 2011


Module: Mesa
Branch: master
Commit: 3b29631c335bfc4a09c302cfdb7a993097c75096
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=3b29631c335bfc4a09c302cfdb7a993097c75096

Author: Brian Paul <brianp at vmware.com>
Date:   Sat Sep 17 10:50:07 2011 -0600

mesa: s/short/ushort/ in unpack_SIGNED_RGBA_16()

---

 src/mesa/main/format_unpack.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/mesa/main/format_unpack.c b/src/mesa/main/format_unpack.c
index c5146f7..02b5720 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] );




More information about the mesa-commit mailing list