Fix handling of implicit default local root signatures in state objects

This commit is contained in:
baldurk
2024-05-09 15:00:30 +01:00
parent 9b3861a97f
commit 088fc3e1f6
+1 -1
View File
@@ -926,7 +926,7 @@ void D3D12ShaderExportDatabase::PopulateDatabase(size_t NumSubobjects,
if(!explicitDefault)
{
// if multiple root signatures are defined, then there can't be an unspecified default
unassocDefaultValid = defaultRoot != NULL;
unassocDefaultValid = defaultRoot == NULL;
defaultRoot = ((D3D12_LOCAL_ROOT_SIGNATURE *)subobjects[i].pDesc)->pLocalRootSignature;
}
}