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

DirectXTex: Fixed bad assert in BC7 CPU compressor

This commit is contained in:
walbourn_cp 2012-11-13 18:10:47 -08:00
parent 0ef4a78e4a
commit a8fb2168c9

View File

@ -2130,8 +2130,8 @@ void D3DX_BC7::Encode(const HDRColorA* const pIn)
for(EP.uMode = 0; EP.uMode < 8 && fMSEBest > 0; ++EP.uMode)
{
const size_t uShapes = 1 << ms_aInfo[EP.uMode].uPartitionBits;
assert( uShapes < BC7_MAX_SHAPES );
__analysis_assume( uShapes < BC7_MAX_SHAPES );
assert( uShapes <= BC7_MAX_SHAPES );
__analysis_assume( uShapes <= BC7_MAX_SHAPES );
const size_t uNumRots = 1 << ms_aInfo[EP.uMode].uRotationBits;
const size_t uNumIdxMode = 1 << ms_aInfo[EP.uMode].uIndexModeBits;