projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
955babf
)
mesa: fix signed/unsignd mix-up in fetch_signed_l_latc1()
author
Brian Paul
<brianp@vmware.com>
Wed, 2 Jan 2013 16:00:36 +0000
(09:00 -0700)
committer
Brian Paul
<brianp@vmware.com>
Wed, 2 Jan 2013 16:02:04 +0000
(09:02 -0700)
Fixes https://bugs.freedesktop.org/show_bug.cgi?id=58844
src/mesa/main/texcompress_rgtc.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/texcompress_rgtc.c
b/src/mesa/main/texcompress_rgtc.c
index fa9172aa2827127b130002d0d314e970ab884571..1f8de25ec812bcf17716a6eaf2e15a58adfd969b 100644
(file)
--- a/
src/mesa/main/texcompress_rgtc.c
+++ b/
src/mesa/main/texcompress_rgtc.c
@@
-364,9
+364,10
@@
fetch_signed_l_latc1(const GLubyte *map, const GLuint imageOffsets[],
GLint rowStride, GLint i, GLint j, GLint k,
GLfloat *texel)
{
- GL
u
byte red;
+ GLbyte red;
GLuint sliceOffset = k ? imageOffsets[k] / 2 : 0;
- unsigned_fetch_texel_rgtc(rowStride, map + sliceOffset, i, j, &red, 1);
+ signed_fetch_texel_rgtc(rowStride, (GLbyte *) map + sliceOffset,
+ i, j, &red, 1);
texel[RCOMP] =
texel[GCOMP] =
texel[BCOMP] = BYTE_TO_FLOAT(red);