mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-06 10:00:40 +00:00
Ensure back compat with D3D11 captures saved with omitted init states
This commit is contained in:
@@ -675,6 +675,11 @@ bool WrappedID3D11Device::Serialise_InitialState(SerialiserType &ser, ResourceId
|
||||
// initial state should be saved or skipped. We now always save all initial states.
|
||||
SERIALISE_ELEMENT_LOCAL(OmittedContents, false);
|
||||
|
||||
if(OmittedContents)
|
||||
{
|
||||
// need to handle this case for legacy captures with omitted resources. Just skip
|
||||
}
|
||||
else
|
||||
{
|
||||
D3D11_SUBRESOURCE_DATA *subData = NULL;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user