mirror of
https://github.com/microsoft/DirectXTex
synced 2024-12-27 20:00:14 +00:00
DirectXTex: minor fix for BC1 encoder
This commit is contained in:
parent
1d3e1d0904
commit
c4c09c2966
@ -258,7 +258,7 @@ static void OptimizeRGB(_Out_ HDRColorA *pX, _Out_ HDRColorA *pY,
|
||||
size_t iStep;
|
||||
if(fDot <= 0.0f)
|
||||
iStep = 0;
|
||||
if(fDot >= fSteps)
|
||||
else if(fDot >= fSteps)
|
||||
iStep = cSteps - 1;
|
||||
else
|
||||
iStep = static_cast<size_t>(fDot + 0.5f);
|
||||
|
Loading…
Reference in New Issue
Block a user