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

[d3d9] Disallow creating additional swapchains if we are fullscreen

From Wine tests...
This commit is contained in:
Joshua Ashton 2020-02-28 01:43:07 +00:00
parent 632812b88f
commit 3587bcdb9f
2 changed files with 6 additions and 0 deletions

View File

@ -3440,6 +3440,10 @@ namespace dxvk {
if (!pPresentationParameters->Windowed)
return D3DERR_INVALIDCALL;
// We can't make another swapchain if we are fullscreen.
if (!m_implicitSwapchain->GetPresentParams()->Windowed)
return D3DERR_INVALIDCALL;
m_implicitSwapchain->Invalidate(pPresentationParameters->hDeviceWindow);
try {

View File

@ -83,6 +83,8 @@ namespace dxvk {
D3D9Surface* GetBackBuffer(UINT iBackBuffer);
const D3DPRESENT_PARAMETERS* GetPresentParams() const { return &m_presentParams; }
private:
enum BindingIds : uint32_t {