Browse Source

Merge branch 'ticket/18'

Closes #18
tickets/18/18/2
rarified 3 years ago
parent
commit
34a5d24f79
  1. 3
      Sources/Plasma/PubUtilLib/plPipeline/plDXPipeline.cpp

3
Sources/Plasma/PubUtilLib/plPipeline/plDXPipeline.cpp

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

Loading…
Cancel
Save