1
0
mirror of https://github.com/microsoft/DirectXTex synced 2024-12-28 12:11:04 +00:00

DirectXTex: minor fix for BC1 encoder

This commit is contained in:
walbourn_cp 2013-07-29 13:33:52 -07:00
parent 1d3e1d0904
commit c4c09c2966

View File

@ -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);