projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8ed2454
)
main/format_pack: Fix a wrong datatype in pack_ubyte_R8G8_UNORM
author
Jason Ekstrand
<jason.ekstrand@intel.com>
Thu, 17 Jul 2014 05:19:49 +0000
(22:19 -0700)
committer
Jason Ekstrand
<jason.ekstrand@intel.com>
Sat, 19 Jul 2014 01:34:36 +0000
(18:34 -0700)
Before it was only storing one of the color components due to truncation.
With this patch it now properly stores all of them.
Reviewed-by: Brian Paul <brianp@vmware.com>
Cc: "10.2" <mesa-stable@lists.freedesktop.org>
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 6b28592a62900601f06766eb3c1ff684e867af9b..c97c05297ef053d0f8f10d9026a840f093e859d0 100644
(file)
--- a/
src/mesa/main/format_pack.c
+++ b/
src/mesa/main/format_pack.c
@@
-888,7
+888,7
@@
pack_float_R_UNORM8(const GLfloat src[4], void *dst)
static void
pack_ubyte_R8G8_UNORM(const GLubyte src[4], void *dst)
{
- GLu
byte *d = ((GLubyte
*) dst);
+ GLu
short *d = ((GLushort
*) dst);
*d = PACK_COLOR_88(src[GCOMP], src[RCOMP]);
}