mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-01-18 20:52:10 +01:00
[d3d9] Avoid rebinding viewports if the same one is re-set
This commit is contained in:
parent
9ec0541b93
commit
288a9dd547
@ -1477,6 +1477,9 @@ namespace dxvk {
|
||||
if (unlikely(ShouldRecord()))
|
||||
return m_recorder->SetViewport(&viewport);
|
||||
|
||||
if (m_state.viewport == viewport)
|
||||
return D3D_OK;
|
||||
|
||||
m_state.viewport = viewport;
|
||||
|
||||
m_flags.set(D3D9DeviceFlag::DirtyViewportScissor);
|
||||
|
Loading…
x
Reference in New Issue
Block a user