mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-03-14 22:29:15 +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)
|
if (!pPresentationParameters->Windowed)
|
||||||
return D3DERR_INVALIDCALL;
|
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);
|
m_implicitSwapchain->Invalidate(pPresentationParameters->hDeviceWindow);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
@ -83,6 +83,8 @@ namespace dxvk {
|
|||||||
|
|
||||||
D3D9Surface* GetBackBuffer(UINT iBackBuffer);
|
D3D9Surface* GetBackBuffer(UINT iBackBuffer);
|
||||||
|
|
||||||
|
const D3DPRESENT_PARAMETERS* GetPresentParams() const { return &m_presentParams; }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
enum BindingIds : uint32_t {
|
enum BindingIds : uint32_t {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user