mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-15 11:06:54 +00:00
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:
@@ -537,7 +537,8 @@ void WrappedID3D12Device::ApplyInitialContents()
|
||||
GetResourceManager()->ApplyInitialContents();
|
||||
|
||||
// close the final list
|
||||
initStateCurList->Close();
|
||||
if(initStateCurList)
|
||||
initStateCurList->Close();
|
||||
|
||||
initStateCurBatch = 0;
|
||||
initStateCurList = NULL;
|
||||
|
||||
Reference in New Issue
Block a user