Mesa (master): mesa: s/GLushort/GLubyte/ in pack_ubyte_AL44()
Brian Paul
brianp at kemper.freedesktop.org
Fri Jan 13 17:02:41 UTC 2012
Module: Mesa
Branch: master
Commit: b0af16abf1153da243b856e55f59ca1945860f47
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=b0af16abf1153da243b856e55f59ca1945860f47
Author: Brian Paul <brianp at vmware.com>
Date: Fri Jan 13 09:41:35 2012 -0700
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 <jfonseca at vmware.com>
---
src/mesa/main/format_pack.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/mesa/main/format_pack.c b/src/mesa/main/format_pack.c
index 0982c9a..85b2c69 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]);
}
More information about the mesa-commit
mailing list