Mask flags when detecting colorarg1 + missing texture case

This commit is contained in:
Anthony 2021-04-19 23:08:06 +12:00 committed by PatrickvL
parent 6bf2a1f44f
commit d8c18cf268
1 changed files with 1 additions and 1 deletions

View File

@ -788,7 +788,7 @@ IDirect3DPixelShader9* GetFixedFunctionShader()
// Don't follow the D3D9 docs if SELECTARG2 is in use (PC D3D9 behaviour, nvidia quirk?)
// Test case: Crash Nitro Kart (engine speed UI)
if (!g_pXbox_SetTexture[i]
&& XboxTextureStates.Get(i, xbox::X_D3DTSS_COLORARG1) == X_D3DTA_TEXTURE
&& (XboxTextureStates.Get(i, xbox::X_D3DTSS_COLORARG1) & 0x7) == X_D3DTA_TEXTURE
&& colorOp != xbox::X_D3DTOP_SELECTARG2)
{
forceDisable = true;