From 1ad9da491de694e98e6472806355620191ec06ae Mon Sep 17 00:00:00 2001 From: Robin Kertels Date: Fri, 7 Mar 2025 17:10:58 +0100 Subject: [PATCH] [d3d9] Remove mentions of SWAPEFFECT_COPY_VSYNC It doesn't exist in desktop D3D9 and we fail device creation with this value anyway. --- src/d3d9/d3d9_include.h | 4 ---- src/d3d9/d3d9_swapchain.h | 3 --- 2 files changed, 7 deletions(-) diff --git a/src/d3d9/d3d9_include.h b/src/d3d9/d3d9_include.h index df35f10fb..533085e55 100644 --- a/src/d3d9/d3d9_include.h +++ b/src/d3d9/d3d9_include.h @@ -44,10 +44,6 @@ #define D3DPRESENT_FORCEIMMEDIATE 0x00000100L #endif -#ifndef D3DSWAPEFFECT_COPY_VSYNC -#define D3DSWAPEFFECT_COPY_VSYNC 4 -#endif - // MinGW headers are broken. Who'dve guessed? #ifndef _MSC_VER typedef struct _D3DDEVINFO_RESOURCEMANAGER diff --git a/src/d3d9/d3d9_swapchain.h b/src/d3d9/d3d9_swapchain.h index 169bb5978..c2248da52 100644 --- a/src/d3d9/d3d9_swapchain.h +++ b/src/d3d9/d3d9_swapchain.h @@ -249,9 +249,6 @@ namespace dxvk { if (m_presentParams.SwapEffect == D3DSWAPEFFECT_COPY) return false; - if (m_presentParams.SwapEffect == D3DSWAPEFFECT_COPY_VSYNC) - return false; - // Tests show that SWAPEEFFECT_DISCARD with 1 backbuffer in windowed mode behaves identically to SWAPEFFECT_COPY // For SWAPEFFECT_COPY we don't swap buffers but do another blit to the front buffer instead. if (m_presentParams.SwapEffect == D3DSWAPEFFECT_DISCARD && m_presentParams.BackBufferCount == 1 && m_presentParams.Windowed)