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

[d3d9] Disallow additional fullscreen swapchains

From Wine tests...
This commit is contained in:
Joshua Ashton 2020-02-28 01:39:52 +00:00
parent 0757097fa0
commit 632812b88f

View File

@ -3436,6 +3436,10 @@ namespace dxvk {
if (ppSwapChain == nullptr || pPresentationParameters == nullptr) if (ppSwapChain == nullptr || pPresentationParameters == nullptr)
return D3DERR_INVALIDCALL; return D3DERR_INVALIDCALL;
// Additional fullscreen swapchains are forbidden.
if (!pPresentationParameters->Windowed)
return D3DERR_INVALIDCALL;
m_implicitSwapchain->Invalidate(pPresentationParameters->hDeviceWindow); m_implicitSwapchain->Invalidate(pPresentationParameters->hDeviceWindow);
try { try {