D3D11 context state is cleared before executing a command list.

* Not doing this could taint the state and even cause invalid read-write
  conflicts to change bindings vs. what should happen, if a RT is left
  bound when it shouldn't, and then an SRV is bound as NULL because it
  would conflict.
This commit is contained in:
baldurk
2017-10-23 13:49:16 +01:00
parent 9a3ece6a01
commit 4286588ac1
@@ -4854,6 +4854,11 @@ bool WrappedID3D11DeviceContext::Serialise_ExecuteCommandList(ID3D11CommandList
{
SAFE_DELETE(m_DeferredSavedState);
m_DeferredSavedState = new D3D11RenderState(this);
// From the Docs:
// "Immediate context state is cleared before and after a command list is executed. A command
// list has no concept of inheritance."
ClearState();
}
if(m_State == READING)