1
0
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:
Philip Rebohle 2019-06-13 01:54:55 +02:00
parent 3b1e03f988
commit 78071c750d
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99

View File

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