diff --git a/DDrawCompat/D3dDdi/DeviceState.cpp b/DDrawCompat/D3dDdi/DeviceState.cpp index ff05028..ebc3df7 100644 --- a/DDrawCompat/D3dDdi/DeviceState.cpp +++ b/DDrawCompat/D3dDdi/DeviceState.cpp @@ -450,6 +450,10 @@ namespace D3dDdi { m_depthStencil = {}; } + else if (m_streamSource.hVertexBuffer == resource) + { + m_streamSource = {}; + } } HRESULT DeviceState::setShader(HANDLE shader, HANDLE& currentShader,