From ee7be21bbb1120283c44e2805f2d89c1346be0d7 Mon Sep 17 00:00:00 2001 From: medievil1 <38597905+medievil1@users.noreply.github.com> Date: Sun, 17 Jul 2022 10:10:12 -0400 Subject: [PATCH] fix dot_str_cube not kicking in when a cube texture is used and dot_str_3d is the texture mode, it is suppose to be flagged by combiner for change to dot_str_cube. --- src/core/hle/D3D8/XbPixelShader.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/core/hle/D3D8/XbPixelShader.cpp b/src/core/hle/D3D8/XbPixelShader.cpp index cff3aa896..33f043f0f 100644 --- a/src/core/hle/D3D8/XbPixelShader.cpp +++ b/src/core/hle/D3D8/XbPixelShader.cpp @@ -489,6 +489,10 @@ typedef struct s_CxbxPSDef { void AdjustTextureModes(DecodedRegisterCombiner &RC) { + if (RC.PSTextureModes[3] = PS_TEXTUREMODES_DOT_STR_CUBE) { + RC.TexModeAdjust = true; + } + // if this flag is set, the texture mode for each texture stage is adjusted as follows: if (RC.TexModeAdjust) { for (int i = 0; i < xbox::X_D3DTS_STAGECOUNT; i++) {