From c7d5ce1c503e56bc79d91874512ff0cade84d556 Mon Sep 17 00:00:00 2001 From: Joshua Ashton Date: Fri, 14 Feb 2020 01:10:26 +0000 Subject: [PATCH] [d3d9] Fix incorrect type for luminance scale and offset in D3DTOP_BUMPENVMAPLUMINANCE --- src/d3d9/d3d9_fixed_function.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/d3d9/d3d9_fixed_function.cpp b/src/d3d9/d3d9_fixed_function.cpp index 5982e8958..a2d933641 100644 --- a/src/d3d9/d3d9_fixed_function.cpp +++ b/src/d3d9/d3d9_fixed_function.cpp @@ -1618,12 +1618,12 @@ namespace dxvk { uint32_t index = m_module.constu32(D3D9SharedPSStages_Count * (i - 1) + D3D9SharedPSStages_BumpEnvLScale); uint32_t lScale = m_module.opAccessChain(m_module.defPointerType(m_floatType, spv::StorageClassUniform), m_ps.sharedState, 1, &index); - lScale = m_module.opLoad(m_vec2Type, lScale); + lScale = m_module.opLoad(m_floatType, lScale); index = m_module.constu32(D3D9SharedPSStages_Count * (i - 1) + D3D9SharedPSStages_BumpEnvLOffset); uint32_t lOffset = m_module.opAccessChain(m_module.defPointerType(m_floatType, spv::StorageClassUniform), m_ps.sharedState, 1, &index); - lOffset = m_module.opLoad(m_vec2Type, lOffset); + lOffset = m_module.opLoad(m_floatType, lOffset); uint32_t zIndex = 2; uint32_t scale = m_module.opCompositeExtract(m_floatType, texture, 1, &zIndex);