[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
1 changed files with 3 additions and 1 deletions

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;