Fallback to CPU compressor only on smaller images.

This commit is contained in:
castano 2009-03-14 03:29:14 +00:00
parent a28ebb4ccf
commit a02649faa9

View File

@ -956,7 +956,7 @@ bool Compressor::Private::compressMipmap(const Mipmap & mipmap, const InputOptio
SlowCompressor slow;
slow.setImage(image, inputOptions.alphaMode);
const bool useCuda = cudaEnabled && image->width() * image->height() >= 1024;
const bool useCuda = cudaEnabled && image->width() * image->height() >= 512;
if (compressionOptions.format == Format_DXT1)
{