1
0
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:
Joshua Ashton 2019-12-18 22:48:15 +00:00
parent 9ec0541b93
commit 288a9dd547

View File

@ -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);