projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ee47e19
)
mesa: fix indexing error in unpack_Z32_FLOAT_X24S8()
author
Brian Paul
<brianp@vmware.com>
Wed, 23 Nov 2011 17:36:16 +0000
(10:36 -0700)
committer
Brian Paul
<brianp@vmware.com>
Mon, 28 Nov 2011 15:04:48 +0000
(08:04 -0700)
The source array elements are 8-bytes (float + uint) so we need
to multiply the src index by 2 to get the right array stride.
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
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 2d2e6a86819fa54f9b79ceba09504c57aa1fc75c..0ab6940144b5ae05ead7d263533fcf5c542ba308 100644
(file)
--- a/
src/mesa/main/format_unpack.c
+++ b/
src/mesa/main/format_unpack.c
@@
-661,7
+661,7
@@
unpack_Z32_FLOAT(const void *src, GLfloat dst[][4], GLuint n)
for (i = 0; i < n; i++) {
dst[i][0] =
dst[i][1] =
- dst[i][2] = s[i];
+ dst[i][2] = s[i
* 2
];
dst[i][3] = 1.0F;
}
}