mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-01-18 20:52:10 +01:00
[d3d11] Fix crash when setting too many viewports
This commit is contained in:
parent
3b1e03f988
commit
78071c750d
@ -2781,6 +2781,9 @@ namespace dxvk {
|
||||
UINT NumViewports,
|
||||
const D3D11_VIEWPORT* pViewports) {
|
||||
D3D10DeviceLock lock = LockContext();
|
||||
|
||||
if (NumViewports > m_state.rs.viewports.size())
|
||||
return;
|
||||
|
||||
bool dirty = m_state.rs.numViewports != NumViewports;
|
||||
m_state.rs.numViewports = NumViewports;
|
||||
|
Loading…
x
Reference in New Issue
Block a user