1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-02-20 19:54:19 +01:00

[d3d11] Fixed FinishCommandList

- ppCommandList is optional.
- We need to call RestoreState in order to set up the current context
  state for the new command list.
This commit is contained in:
Philip Rebohle 2018-03-03 22:28:30 +01:00
parent 82ac381919
commit c5bbf2d989
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99

View File

@ -43,11 +43,14 @@ namespace dxvk {
HRESULT STDMETHODCALLTYPE D3D11DeferredContext::FinishCommandList(
WINBOOL RestoreDeferredContextState,
ID3D11CommandList **ppCommandList) {
*ppCommandList = m_commandList.ref();
if (ppCommandList != nullptr)
*ppCommandList = m_commandList.ref();
m_commandList = CreateCommandList();
if (!RestoreDeferredContextState)
ClearState();
else
RestoreState();
return S_OK;
}