DirectXTex: Fixed bad assert in BC7 CPU compressor
This commit is contained in:
parent
0ef4a78e4a
commit
a8fb2168c9
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user