projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8eebd21
)
rgtc: fix fetch function limits for signed types
author
Dave Airlie
<airlied@redhat.com>
Tue, 1 Mar 2011 23:52:53 +0000
(09:52 +1000)
committer
Dave Airlie
<airlied@redhat.com>
Tue, 1 Mar 2011 23:52:53 +0000
(09:52 +1000)
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 f6a1825216d34ae302f89a96e6040e1574207790..dcde4dd5a73bac92fd8af980a72b49ecdf3c999d 100644
(file)
--- a/
src/mesa/main/texcompress_rgtc.c
+++ b/
src/mesa/main/texcompress_rgtc.c
@@
-364,9
+364,9
@@
static void _fetch_texel_rgtc_s(GLint srcRowStride, const GLbyte *pixdata,
else if (code < 6)
decode = ((alpha0 * (6 - code) + (alpha1 * (code - 1))) / 5);
else if (code == 6)
- decode = -12
8
;
+ decode = -12
7
;
else
- decode = 12
7
;
+ decode = 12
8
;
*value = decode;
}