1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-03-13 19:29:14 +01:00

[d3d9] Fix crash when trying to present with a currently invalid presenter

Closes #1304
This commit is contained in:
Joshua Ashton 2019-12-28 01:27:18 +00:00
parent 0993f6f25d
commit ff129abaf0

View File

@ -122,7 +122,9 @@ namespace dxvk {
m_dirty |= vsync != m_vsync;
m_dirty |= UpdatePresentRegion(pSourceRect, pDestRect);
m_dirty |= recreate;
m_dirty |= !m_presenter->hasSwapChain();
m_dirty |= m_presenter != nullptr &&
!m_presenter->hasSwapChain();
m_vsync = vsync;
m_dialogChanged = false;