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:
parent
82ac381919
commit
c5bbf2d989
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user