1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-03-14 04:29:15 +01:00

[d3d9] Remove mentions of SWAPEFFECT_COPY_VSYNC

It doesn't exist in desktop D3D9 and
we fail device creation with this value anyway.
This commit is contained in:
Robin Kertels 2025-03-07 17:10:58 +01:00
parent 6d2c692607
commit 1ad9da491d
No known key found for this signature in database
GPG Key ID: 3824904F14D40757
2 changed files with 0 additions and 7 deletions

View File

@ -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

View File

@ -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)