From 41d0fcff9581866dbb21c11d56729cf05676fb46 Mon Sep 17 00:00:00 2001 From: Georg Lehmann Date: Thu, 19 Aug 2021 10:39:43 +0200 Subject: [PATCH] [d3d9] Disable projection for PS 1.4 --- src/d3d9/d3d9_device.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/d3d9/d3d9_device.cpp b/src/d3d9/d3d9_device.cpp index 7115c8800..fea0e4d5e 100644 --- a/src/d3d9/d3d9_device.cpp +++ b/src/d3d9/d3d9_device.cpp @@ -6012,10 +6012,12 @@ namespace dxvk { const uint32_t fetch4 = m_fetch4 & psTextureMask; const uint32_t projected = m_projectionBitfield & psTextureMask; - if (GetCommonShader(m_state.pixelShader)->GetInfo().majorVersion() >= 2) + const auto& programInfo = GetCommonShader(m_state.pixelShader)->GetInfo(); + + if (programInfo.majorVersion() >= 2) UpdateSamplerTypes(m_d3d9Options.forceSamplerTypeSpecConstants ? m_textureTypes : 0u, 0u, fetch4); else - UpdateSamplerTypes(m_textureTypes, projected, fetch4); // For implicit samplers... + UpdateSamplerTypes(m_textureTypes, programInfo.minorVersion() >= 4 ? 0u : projected, fetch4); // For implicit samplers... UpdateBoolSpecConstantPixel( m_state.psConsts.bConsts[0] &