From 4c0eee89e40d22b8f85dac44b7566e62883fed9e Mon Sep 17 00:00:00 2001 From: Joshua Ashton Date: Thu, 11 Nov 2021 23:53:38 +0000 Subject: [PATCH] [d3d9] Use clamped LOD for creating new views --- src/d3d9/d3d9_texture.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/d3d9/d3d9_texture.h b/src/d3d9/d3d9_texture.h index c484c015..8d81dbee 100644 --- a/src/d3d9/d3d9_texture.h +++ b/src/d3d9/d3d9_texture.h @@ -59,7 +59,7 @@ namespace dxvk { m_lod = std::min(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); }