[PATCH] dxgi: Return S_OK from d3d11_swapchain_GetLastPresentCount().
Andrey Gusev
andrey.goosev at gmail.com
Fri May 28 09:03:02 CDT 2021
Fixes crash for Metal Gear Solid V: Ground Zeroes.
Signed-off-by: Andrey Gusev <andrey.goosev at gmail.com>
---
dlls/dxgi/swapchain.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/dlls/dxgi/swapchain.c b/dlls/dxgi/swapchain.c
index 5b3ca5b5762..20e6fe3384a 100644
--- a/dlls/dxgi/swapchain.c
+++ b/dlls/dxgi/swapchain.c
@@ -601,7 +601,10 @@ static HRESULT STDMETHODCALLTYPE d3d11_swapchain_GetLastPresentCount(IDXGISwapCh
{
FIXME("iface %p, last_present_count %p stub!\n", iface, last_present_count);
- return E_NOTIMPL;
+ if (last_present_count)
+ *last_present_count = 0;
+
+ return S_OK;
}
/* IDXGISwapChain1 methods */
--
2.31.1
More information about the wine-devel
mailing list