From 45a03b11bef70d1e7d99f9ea5ead99d18b6ceb20 Mon Sep 17 00:00:00 2001 From: Philip Rebohle Date: Sun, 18 Feb 2018 23:49:00 +0100 Subject: [PATCH] [dxgi] Add stub implementation of DXGI_PRESENT_TEST --- src/dxgi/dxgi_swapchain.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/dxgi/dxgi_swapchain.cpp b/src/dxgi/dxgi_swapchain.cpp index ffe4239a..de335182 100644 --- a/src/dxgi/dxgi_swapchain.cpp +++ b/src/dxgi/dxgi_swapchain.cpp @@ -158,6 +158,9 @@ namespace dxvk { HRESULT STDMETHODCALLTYPE DxgiSwapChain::Present(UINT SyncInterval, UINT Flags) { std::lock_guard lock(m_mutex); + if (Flags & DXGI_PRESENT_TEST) + return S_OK; + try { // Submit pending rendering commands // before recording the present code.