Incomplete DXT1a support.
This commit is contained in:
parent
2903886498
commit
c02a5bb51f
@ -241,8 +241,8 @@ void nv::compressDXT1a(const Image * image, const OutputOptions::Private & outpu
|
||||
rgba.init(image, x, y);
|
||||
|
||||
// Compress color.
|
||||
squish::ColourSet colours((uint8 *)rgba.colors(), 0);
|
||||
squish::WeightedClusterFit fit(&colours, squish::kDxt1);
|
||||
squish::ClusterFit fit(&colours, squish::kDxt1);
|
||||
fit.setMetric(compressionOptions.colorWeight.x(), compressionOptions.colorWeight.y(), compressionOptions.colorWeight.z());
|
||||
fit.Compress(&block);
|
||||
|
||||
|
@ -224,11 +224,11 @@ static bool compressMipmap(const Image * image, const OutputOptions::Private & o
|
||||
{
|
||||
if (compressionOptions.useCuda && nv::cuda::isHardwarePresent())
|
||||
{
|
||||
/*cuda*/compressDXT1a(image, outputOptions);
|
||||
/*cuda*/compressDXT1a(image, outputOptions, compressionOptions);
|
||||
}
|
||||
else
|
||||
{
|
||||
compressDXT1a(image, outputOptions);
|
||||
compressDXT1a(image, outputOptions, compressionOptions);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -43,7 +43,7 @@ ColourSet::ColourSet( u8 const* rgba, int flags )
|
||||
{
|
||||
m_remap[i] = -1;
|
||||
m_transparent = true;
|
||||
continue;
|
||||
// continue;
|
||||
}
|
||||
|
||||
#if 1
|
||||
|
Loading…
Reference in New Issue
Block a user