mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-01-31 14:52:11 +01:00
[d3d9] Add missing locks to mipmap auto gen
This commit is contained in:
parent
b1bd3597a4
commit
f537474fe4
@ -77,6 +77,8 @@ namespace dxvk {
|
|||||||
if (unlikely(FilterType == D3DTEXF_NONE))
|
if (unlikely(FilterType == D3DTEXF_NONE))
|
||||||
return D3DERR_INVALIDCALL;
|
return D3DERR_INVALIDCALL;
|
||||||
|
|
||||||
|
auto lock = this->m_parent->LockDevice();
|
||||||
|
|
||||||
m_texture.SetMipFilter(FilterType);
|
m_texture.SetMipFilter(FilterType);
|
||||||
return D3D_OK;
|
return D3D_OK;
|
||||||
}
|
}
|
||||||
@ -89,6 +91,8 @@ namespace dxvk {
|
|||||||
if (!m_texture.NeedsMipGen())
|
if (!m_texture.NeedsMipGen())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
auto lock = this->m_parent->LockDevice();
|
||||||
|
|
||||||
this->m_parent->MarkTextureMipsUnDirty(&m_texture);
|
this->m_parent->MarkTextureMipsUnDirty(&m_texture);
|
||||||
this->m_parent->EmitGenerateMips(&m_texture);
|
this->m_parent->EmitGenerateMips(&m_texture);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user