diff --git a/src/nvimage/ColorBlock.cpp b/src/nvimage/ColorBlock.cpp index a734177..cdc7d3c 100644 --- a/src/nvimage/ColorBlock.cpp +++ b/src/nvimage/ColorBlock.cpp @@ -88,7 +88,7 @@ void ColorBlock::swizzleDXT5n() for(int i = 0; i < 16; i++) { Color32 c = m_color[i]; - m_color[i] = Color32(0, c.g, 0, c.r); + m_color[i] = Color32(0xFF, c.g, 0, c.r); } } diff --git a/src/nvtt/QuickCompressDXT.cpp b/src/nvtt/QuickCompressDXT.cpp index b2213e6..d816939 100644 --- a/src/nvtt/QuickCompressDXT.cpp +++ b/src/nvtt/QuickCompressDXT.cpp @@ -506,10 +506,12 @@ void QuickCompress::compressDXT1G(const ColorBlock & rgba, BlockDXT1 * block) maxg = max(maxg, green); } - block->col0.u = 0; - block->col1.u = 0; + block->col0.r = 0xFF; + block->col1.r = 0xFF; block->col0.g = maxg; block->col1.g = ming; + block->col0.b = 0; + block->col1.b = 0; if (maxg - ming > 4) {