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:
parent
632812b88f
commit
3587bcdb9f
@ -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 {
|
||||
|
@ -83,6 +83,8 @@ namespace dxvk {
|
||||
|
||||
D3D9Surface* GetBackBuffer(UINT iBackBuffer);
|
||||
|
||||
const D3DPRESENT_PARAMETERS* GetPresentParams() const { return &m_presentParams; }
|
||||
|
||||
private:
|
||||
|
||||
enum BindingIds : uint32_t {
|
||||
|
Loading…
x
Reference in New Issue
Block a user