projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ee09c1e
)
mesa: s/short/ushort/ in unpack_SIGNED_RGBA_16()
author
Brian Paul
<brianp@vmware.com>
Sat, 17 Sep 2011 16:50:07 +0000
(10:50 -0600)
committer
Brian Paul
<brianp@vmware.com>
Sat, 17 Sep 2011 16:50:42 +0000
(10:50 -0600)
src/mesa/main/format_unpack.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/format_unpack.c
b/src/mesa/main/format_unpack.c
index c5146f72da04566778e4a4e3da381402d9004691..02b57205ed52f67612270a79b24f394cd2b25a2a 100644
(file)
--- 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 GL
short *s = (const GL
short *) src;
+ const GL
ushort *s = (const GLu
short *) src;
dst[RCOMP] = USHORT_TO_FLOAT( s[0] );
dst[GCOMP] = USHORT_TO_FLOAT( s[1] );
dst[BCOMP] = USHORT_TO_FLOAT( s[2] );