mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-01-18 20:52:10 +01:00
[d3d11] Synchronize presentation when destroying swap chain
Otherwise, we might destroy the presenter before the CS thread actually issues the present operation, and the waitForIdle has not the desired effect.
This commit is contained in:
parent
9ccad0d197
commit
c9c6b1886b
@ -41,6 +41,7 @@ namespace dxvk {
|
|||||||
|
|
||||||
|
|
||||||
D3D11SwapChain::~D3D11SwapChain() {
|
D3D11SwapChain::~D3D11SwapChain() {
|
||||||
|
m_device->waitForSubmission(&m_presentStatus);
|
||||||
m_device->waitForIdle();
|
m_device->waitForIdle();
|
||||||
|
|
||||||
if (m_backBuffer)
|
if (m_backBuffer)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user