mirror of
https://github.com/yuzu-emu/FasTC
synced 2024-11-25 16:56:07 +00:00
Fix bug so that we at least generate *some* endpoints
This commit is contained in:
parent
2141d71dd0
commit
fabf6830ee
1 changed files with 3 additions and 2 deletions
|
@ -306,7 +306,8 @@ double RGBACluster::QuantizedError(
|
|||
|
||||
float minError = FLT_MAX;
|
||||
uint8 bestBucket = 0;
|
||||
for(int32 j = j1; j <= j2; j++) {
|
||||
int32 j = j1;
|
||||
do {
|
||||
|
||||
uint32 interp0 = (*interpVals)[j][0];
|
||||
uint32 interp1 = (*interpVals)[j][1];
|
||||
|
@ -331,7 +332,7 @@ double RGBACluster::QuantizedError(
|
|||
else if(error > minError) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
} while(++j <= j2);
|
||||
|
||||
totalError += minError;
|
||||
|
||||
|
|
Loading…
Reference in a new issue