Fix crash if D3D12 capture has no initial states at all

* Located via a crash report - if there are no initial states in a
  capture at all, then initStateCurList will still be NULL after trying
  to apply them.
This commit is contained in:
baldurk
2017-01-04 16:55:29 +00:00
parent a4ebf68e9d
commit 52cbc802a1
+2 -1
View File
@@ -537,7 +537,8 @@ void WrappedID3D12Device::ApplyInitialContents()
GetResourceManager()->ApplyInitialContents();
// close the final list
initStateCurList->Close();
if(initStateCurList)
initStateCurList->Close();
initStateCurBatch = 0;
initStateCurList = NULL;