mirror of
https://github.com/doitsujin/dxvk.git
synced 2024-12-12 13:08:50 +01:00
[d3d9] Use clamped LOD for creating new views
This commit is contained in:
parent
c22dcdbaa3
commit
4c0eee89e4
@ -59,7 +59,7 @@ namespace dxvk {
|
|||||||
m_lod = std::min<DWORD>(LODNew, m_texture.Desc()->MipLevels - 1);
|
m_lod = std::min<DWORD>(LODNew, m_texture.Desc()->MipLevels - 1);
|
||||||
|
|
||||||
if (m_lod != oldLod) {
|
if (m_lod != oldLod) {
|
||||||
m_texture.CreateSampleView(LODNew);
|
m_texture.CreateSampleView(m_lod);
|
||||||
if (this->GetPrivateRefCount() > 0)
|
if (this->GetPrivateRefCount() > 0)
|
||||||
this->m_parent->MarkTextureBindingDirty(this);
|
this->m_parent->MarkTextureBindingDirty(this);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user