mirror of
https://github.com/EduApps-CDG/OpenDX
synced 2024-12-30 09:45:37 +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() {
|
||||
m_device->waitForSubmission(&m_presentStatus);
|
||||
m_device->waitForIdle();
|
||||
|
||||
if (m_backBuffer)
|
||||
|
Loading…
x
Reference in New Issue
Block a user