1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-02-20 10:54:16 +01:00

[d3d11] Fix error handling in SetMaximumFrameLatency

Fixes a wine test failure.
This commit is contained in:
Philip Rebohle 2019-10-01 22:10:34 +02:00
parent 2cb9d34f8f
commit 0d1048fa87
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99

View File

@ -2662,7 +2662,7 @@ namespace dxvk {
MaxLatency = DefaultFrameLatency;
if (MaxLatency > m_frameEvents.size())
MaxLatency = m_frameEvents.size();
return DXGI_ERROR_INVALID_CALL;
m_frameLatency = MaxLatency;
return S_OK;