Fix export lookup index being incorrect

This commit is contained in:
baldurk
2024-10-03 12:57:44 +01:00
parent b49e2e607f
commit be3f2a65fb
+1 -1
View File
@@ -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)