Commit 6a011388 authored by Joshua Ashton's avatar Joshua Ashton 🐸

[d3d9] 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.

Mirror of c9c6b188
parent ccdc59da
Pipeline #911 passed with stage
in 10 minutes and 8 seconds
......@@ -56,6 +56,7 @@ namespace dxvk {
D3D9SwapChainEx::~D3D9SwapChainEx() {
RestoreDisplayMode(m_monitor);
m_device->waitForSubmission(&m_presentStatus);
m_device->waitForIdle();
if (m_backBuffer)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment