Merge fix for issue 134 into trunk.

This commit is contained in:
castano
2010-08-26 16:46:03 +00:00
parent 83e249a1a0
commit 47e8f23e9f
3 changed files with 7 additions and 4 deletions

View File

@ -482,8 +482,11 @@ int main(int argc, char *argv[])
// Dither alpha when using BC2.
compressionOptions.setQuantization(false, true, false);
}
if (format == nvtt::Format_RGBA)
else if (format == nvtt::Format_BC1a) {
// Binary alpha when using BC1a.
compressionOptions.setQuantization(false, true, true, 127);
}
else if (format == nvtt::Format_RGBA)
{
if (luminance)
{