|
|
|
@ -8663,10 +8663,9 @@ hsBool plDXPipeline::IProcessMipmapLevels( plMipmap *mipmap, UInt32 &numLevels,
|
|
|
|
|
if( mipmap->IsCompressed() || !( fSettings.fD3DCaps & kCapsDoesSmallTextures ) ) |
|
|
|
|
{ |
|
|
|
|
mipmap->SetCurrLevel( maxLevel ); |
|
|
|
|
while( ( mipmap->GetCurrWidth() | mipmap->GetCurrHeight() ) & sizeMask ) |
|
|
|
|
while( maxLevel > 0 && (( mipmap->GetCurrWidth() | mipmap->GetCurrHeight() ) & sizeMask) ) |
|
|
|
|
{ |
|
|
|
|
maxLevel--; |
|
|
|
|
hsAssert( maxLevel >= 0, "How was this ever compressed?" ); |
|
|
|
|
mipmap->SetCurrLevel( maxLevel ); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|