From 0d1048fa87d06e044dbaddba187838ded372bb17 Mon Sep 17 00:00:00 2001 From: Philip Rebohle Date: Tue, 1 Oct 2019 22:10:34 +0200 Subject: [PATCH] [d3d11] Fix error handling in SetMaximumFrameLatency Fixes a wine test failure. --- src/d3d11/d3d11_device.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/d3d11/d3d11_device.cpp b/src/d3d11/d3d11_device.cpp index b28703758..1a223faec 100644 --- a/src/d3d11/d3d11_device.cpp +++ b/src/d3d11/d3d11_device.cpp @@ -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;