mirror of
https://github.com/EduApps-CDG/OpenDX
synced 2024-12-30 09:45:37 +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...
|
// Guaranteed to not be nullptr...
|
||||||
auto texInfo = GetCommonTexture(m_state.textures[bit::tzcnt(tex)]);
|
auto texInfo = GetCommonTexture(m_state.textures[bit::tzcnt(tex)]);
|
||||||
|
|
||||||
this->GenerateMips(texInfo);
|
if (texInfo->NeedsMipGen()) {
|
||||||
texInfo->SetNeedsMipGen(false);
|
this->GenerateMips(texInfo);
|
||||||
|
texInfo->SetNeedsMipGen(false);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
m_activeTexturesToGen &= ~mask;
|
m_activeTexturesToGen &= ~mask;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user