[d3d9] workaround for EDG frontend based compilers

This commit is contained in:
r-a-sattarov 2024-01-17 22:46:36 +03:00
parent ac78048c23
commit 809c1d4cf5
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) {