From 36d0a7e225cc49dd7d288b80380c5e7796aeb420 Mon Sep 17 00:00:00 2001 From: r-a-sattarov Date: Wed, 17 Jan 2024 22:46:36 +0300 Subject: [PATCH] [d3d9] workaround for EDG frontend based compilers --- src/d3d9/d3d9_state.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/d3d9/d3d9_state.h b/src/d3d9/d3d9_state.h index ad113d130ae6..625b344fef43 100644 --- a/src/d3d9/d3d9_state.h +++ b/src/d3d9/d3d9_state.h @@ -303,7 +303,7 @@ namespace dxvk { } else { for (UINT i = 0; i < Count; i++) - set->fConsts[StartRegister + i] = replaceNaN(pConstantData + (i * 4)); + set->fConsts[StartRegister + i] = replaceNaN((float*)pConstantData + (i * 4)); } } else if constexpr (ConstantType == D3D9ConstantType::Int) {