OSDN Git Service
(root)
/
android-x86
/
external-s2tc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4a4083b
)
DXT1 needs a workaround here
author
Rudolf Polzer
<divverent@xonotic.org>
Sat, 16 Jul 2011 12:07:03 +0000
(14:07 +0200)
committer
Rudolf Polzer
<divverent@xonotic.org>
Sat, 16 Jul 2011 12:07:03 +0000
(14:07 +0200)
s2tc_compressor.cpp
patch
|
blob
|
history
diff --git
a/s2tc_compressor.cpp
b/s2tc_compressor.cpp
index
e390197
..
0da0dfb
100644
(file)
--- a/
s2tc_compressor.cpp
+++ b/
s2tc_compressor.cpp
@@
-730,7
+730,7
@@
namespace
c[4].r = rgba[(x + y * iw) * 4 + 2];
c[4].g = rgba[(x + y * iw) * 4 + 1];
c[4].b = rgba[(x + y * iw) * 4 + 0];
- if(alpha_0_is_unimportant<ColorDist>::value
)
+ if(alpha_0_is_unimportant<ColorDist>::value
|| dxt == DXT1) // in DXT1, alpha 0 pixels are always skipped!
{
if(dxt == DXT5)
{