Disable quick green compressor, until I figure out what's the problem with it.

This commit is contained in:
castano 2008-01-31 21:07:18 +00:00
parent 5475f35262
commit 6fadaebae5
2 changed files with 6 additions and 3 deletions

View File

@ -349,7 +349,8 @@ void nv::compressDXT5n(const Image * image, const OutputOptions::Private & outpu
}
// Compress Y.
QuickCompress::compressDXT1G(rgba, &block.color);
// QuickCompress::compressDXT1G(rgba, &block.color);
compressGreenBlock_BruteForce(rgba, &block.color);
if (outputOptions.outputHandler != NULL) {
outputOptions.outputHandler->writeData(&block, sizeof(block));

View File

@ -904,10 +904,12 @@ void nv::compressGreenBlock_BruteForce(const ColorBlock & rgba, BlockDXT1 * bloc
maxg = max(maxg, green);
}
block->col0.u = 0;
block->col1.u = 0;
block->col0.r = 31;
block->col1.r = 31;
block->col0.g = maxg;
block->col1.g = ming;
block->col0.b = 0;
block->col1.b = 0;
if (maxg - ming > 4)
{