1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-01-18 20:52:10 +01:00

[d3d9] Check if needs mip gen in GenerateTextureMips

There could be duplicate indices!
This commit is contained in:
Joshua Ashton 2020-05-26 18:49:17 +01:00
parent 6c030afc95
commit fabe7b5d59

View File

@ -4893,8 +4893,10 @@ namespace dxvk {
// Guaranteed to not be nullptr...
auto texInfo = GetCommonTexture(m_state.textures[bit::tzcnt(tex)]);
this->GenerateMips(texInfo);
texInfo->SetNeedsMipGen(false);
if (texInfo->NeedsMipGen()) {
this->GenerateMips(texInfo);
texInfo->SetNeedsMipGen(false);
}
}
m_activeTexturesToGen &= ~mask;