[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
1 changed files with 1 additions and 1 deletions

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