mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-03-15 07:29:17 +01:00
[d3d9] Avoid rebinding scissor rects if the same one is re-set
This commit is contained in:
parent
288a9dd547
commit
bab56433cb
@ -2202,6 +2202,9 @@ namespace dxvk {
|
||||
if (unlikely(ShouldRecord()))
|
||||
return m_recorder->SetScissorRect(pRect);
|
||||
|
||||
if (m_state.scissorRect == *pRect)
|
||||
return D3D_OK;
|
||||
|
||||
m_state.scissorRect = *pRect;
|
||||
|
||||
m_flags.set(D3D9DeviceFlag::DirtyViewportScissor);
|
||||
|
Loading…
x
Reference in New Issue
Block a user