From be3c248c8b1e60838a8864e96cab874306b096ea Mon Sep 17 00:00:00 2001 From: Georg Lehmann Date: Sat, 7 Aug 2021 15:53:55 +0200 Subject: [PATCH] [d3d9] Don't mark mips as dirty when the texture doesn't have automatic mips --- src/d3d9/d3d9_texture.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/d3d9/d3d9_texture.h b/src/d3d9/d3d9_texture.h index 1eaa5b23..1bb00f3c 100644 --- a/src/d3d9/d3d9_texture.h +++ b/src/d3d9/d3d9_texture.h @@ -80,7 +80,8 @@ namespace dxvk { auto lock = this->m_parent->LockDevice(); m_texture.SetMipFilter(FilterType); - this->m_parent->MarkTextureMipsDirty(&m_texture); + if (m_texture.IsAutomaticMip()) + this->m_parent->MarkTextureMipsDirty(&m_texture); return D3D_OK; }