mirror of
https://github.com/EduApps-CDG/OpenDX
synced 2024-12-30 09:45:37 +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(
|
HRESULT STDMETHODCALLTYPE D3D11DeferredContext::FinishCommandList(
|
||||||
WINBOOL RestoreDeferredContextState,
|
WINBOOL RestoreDeferredContextState,
|
||||||
ID3D11CommandList **ppCommandList) {
|
ID3D11CommandList **ppCommandList) {
|
||||||
*ppCommandList = m_commandList.ref();
|
if (ppCommandList != nullptr)
|
||||||
|
*ppCommandList = m_commandList.ref();
|
||||||
m_commandList = CreateCommandList();
|
m_commandList = CreateCommandList();
|
||||||
|
|
||||||
if (!RestoreDeferredContextState)
|
if (!RestoreDeferredContextState)
|
||||||
ClearState();
|
ClearState();
|
||||||
|
else
|
||||||
|
RestoreState();
|
||||||
|
|
||||||
return S_OK;
|
return S_OK;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user