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:
parent
6c030afc95
commit
fabe7b5d59
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user