1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-01-18 20:52:10 +01:00

[d3d9] Add missing locks to mipmap auto gen

This commit is contained in:
Joshua Ashton 2020-06-06 20:17:13 +01:00 committed by Joshie
parent b1bd3597a4
commit f537474fe4

View File

@ -77,6 +77,8 @@ namespace dxvk {
if (unlikely(FilterType == D3DTEXF_NONE))
return D3DERR_INVALIDCALL;
auto lock = this->m_parent->LockDevice();
m_texture.SetMipFilter(FilterType);
return D3D_OK;
}
@ -89,6 +91,8 @@ namespace dxvk {
if (!m_texture.NeedsMipGen())
return;
auto lock = this->m_parent->LockDevice();
this->m_parent->MarkTextureMipsUnDirty(&m_texture);
this->m_parent->EmitGenerateMips(&m_texture);
}