diff --git a/renderdoc/driver/d3d12/d3d12_resources.cpp b/renderdoc/driver/d3d12/d3d12_resources.cpp index 9b211db62..bf7acb8da 100644 --- a/renderdoc/driver/d3d12/d3d12_resources.cpp +++ b/renderdoc/driver/d3d12/d3d12_resources.cpp @@ -1254,7 +1254,7 @@ void D3D12ShaderExportDatabase::InheritExport(const rdcstr &exportName, memcpy(ownExports.back().real, identifier, sizeof(ShaderIdentifier)); // and re-point this to point to ourselves when queried as we have the best data for it. - wrappedIdentifiers.back() = {objectOriginalId, (uint32_t)ownExports.size()}; + wrappedIdentifiers.back() = {objectOriginalId, (uint32_t)ownExports.size() - 1}; // if this is an incomplete hitgroup, also grab the hitgroup component data if(exportLookups.back().hitgroup)