projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
540a8b2
)
mesa: s/GLushort/GLubyte/ in pack_ubyte_AL44()
author
Brian Paul
<brianp@vmware.com>
Fri, 13 Jan 2012 16:41:35 +0000
(09:41 -0700)
committer
Brian Paul
<brianp@vmware.com>
Fri, 13 Jan 2012 16:51:28 +0000
(09:51 -0700)
The AL44 format occupies one byte, not two.
NOTE: This is a candidate for the 8.0 branch.
Reviewed-by: José Fonseca <jfonseca@vmware.com>
src/mesa/main/format_pack.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/format_pack.c
b/src/mesa/main/format_pack.c
index 0982c9af4e9a602a7e17e840fa8d2f785ad45ab6..85b2c691c548424ab28112897727ccbd7abf9a7d 100644
(file)
--- 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)
{
- GLu
short *d = ((GLushort
*) dst);
+ GLu
byte *d = ((GLubyte
*) dst);
*d = PACK_COLOR_44(src[ACOMP], src[RCOMP]);
}