1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2024-12-12 13:08:50 +01:00

[d3d9] Use clamped LOD for creating new views

This commit is contained in:
Joshua Ashton 2021-11-11 23:53:38 +00:00
parent c22dcdbaa3
commit 4c0eee89e4

View File

@ -59,7 +59,7 @@ namespace dxvk {
m_lod = std::min<DWORD>(LODNew, m_texture.Desc()->MipLevels - 1);
if (m_lod != oldLod) {
m_texture.CreateSampleView(LODNew);
m_texture.CreateSampleView(m_lod);
if (this->GetPrivateRefCount() > 0)
this->m_parent->MarkTextureBindingDirty(this);
}