per review remarls
moved the case to the else statement and added a log entry
This commit is contained in:
parent
9ee5b45b88
commit
0b76da7c00
|
@ -489,10 +489,6 @@ typedef struct s_CxbxPSDef {
|
|||
|
||||
void AdjustTextureModes(DecodedRegisterCombiner &RC)
|
||||
{
|
||||
if (RC.PSTextureModes[3] == PS_TEXTUREMODES_DOT_STR_3D) {
|
||||
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++) {
|
||||
|
@ -560,6 +556,14 @@ typedef struct s_CxbxPSDef {
|
|||
EmuLog(LOG_LEVEL::WARNING, "PROJECT2D sampling is used with a cubemap texture - using CUBEMAP sampling instead");
|
||||
RC.PSTextureModes[i] = PS_TEXTUREMODES_CUBEMAP;
|
||||
}
|
||||
// Test-case: MS-033 Crimson Skies (Plane texturing in-game and selection menu)
|
||||
// HACK: use the TexModeAdjust path to downgrade PS_TEXTUREMODES_DOT_STR_3D to PS_TEXTUREMODES_DOT_STR_CUBE for cube textures.
|
||||
if (ActiveTextureTypes[i] == xbox::X_D3DRTYPE_CUBETEXTURE && RC.PSTextureModes[i] == PS_TEXTUREMODES_DOT_STR_3D) {
|
||||
EmuLog(LOG_LEVEL::WARNING, "DOT_STR_3D sampling is used with a cubemap texture - using DOT_STR_CUBE sampling instead");
|
||||
RC.PSTextureModes[i] = PS_TEXTUREMODES_DOT_STR_CUBE;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue