small fix in brute force green compressor.
This commit is contained in:
parent
e78fc98020
commit
16641fc6a6
@ -873,7 +873,7 @@ void nv::compressGreenBlock_BruteForce(const ColorBlock & rgba, BlockDXT1 * bloc
|
|||||||
|
|
||||||
for (int g0 = ming+5; g0 < maxg; g0++)
|
for (int g0 = ming+5; g0 < maxg; g0++)
|
||||||
{
|
{
|
||||||
for (int g1 = ming; g1 < g0-8; g1++)
|
for (int g1 = ming; g1 < g0-4; g1++)
|
||||||
{
|
{
|
||||||
if ((maxg-g0) + (g1-ming) > besterror)
|
if ((maxg-g0) + (g1-ming) > besterror)
|
||||||
continue;
|
continue;
|
||||||
@ -1184,7 +1184,7 @@ uint nv::compressBlock_BruteForce(const ColorBlock & rgba, AlphaBlockDXT5 * bloc
|
|||||||
block->alpha0 = maxa;
|
block->alpha0 = maxa;
|
||||||
block->alpha1 = mina;
|
block->alpha1 = mina;
|
||||||
|
|
||||||
int centroidDist = 256;
|
/*int centroidDist = 256;
|
||||||
int centroid;
|
int centroid;
|
||||||
|
|
||||||
// Get the closest to the centroid.
|
// Get the closest to the centroid.
|
||||||
@ -1197,7 +1197,7 @@ uint nv::compressBlock_BruteForce(const ColorBlock & rgba, AlphaBlockDXT5 * bloc
|
|||||||
centroidDist = dist;
|
centroidDist = dist;
|
||||||
centroid = alpha;
|
centroid = alpha;
|
||||||
}
|
}
|
||||||
}
|
}*/
|
||||||
|
|
||||||
if (maxa - mina > 8)
|
if (maxa - mina > 8)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user