This commit is contained in:
r-a-sattarov 2024-05-04 23:14:57 +08:00 committed by GitHub
commit 504a7ef179
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

View File

@ -303,7 +303,8 @@ namespace dxvk {
}
else {
for (UINT i = 0; i < Count; i++)
set->fConsts[StartRegister + i] = replaceNaN(pConstantData + (i * 4));
// The (float*) cast is a workaround for a bug in the EDG compiler frontend
set->fConsts[StartRegister + i] = replaceNaN((float*)pConstantData + (i * 4));
}
}
else if constexpr (ConstantType == D3D9ConstantType::Int) {