Re-enable texture stage swap hack

This commit is contained in:
Anthony 2021-03-20 00:15:06 +13:00 committed by PatrickvL
parent 90bdeac904
commit 03200fdcd3
1 changed files with 4 additions and 5 deletions

View File

@ -166,13 +166,12 @@ void XboxTextureStateConverter::Apply()
// Track if we need to overwrite state 0 with 3 because of Point Sprites
// The Xbox NV2A uses only Stage 3 for point-sprites, so we emulate this
// by mapping Stage 3 to Stage 0, and disabling all stages > 0
// TODO use stage 3 when we roll our own point sprites after moving off D3D9
bool pointSpriteOverride = false;
bool pointSpritesEnabled = false;
if (g_Xbox_VertexShaderMode == VertexShaderMode::FixedFunction && g_UseFixedFunctionVertexShader) {
pointSpritesEnabled = pXboxRenderStates->GetXboxRenderState(xbox::X_D3DRS_POINTSPRITEENABLE);
if (pointSpritesEnabled) {
pointSpriteOverride = true;
}
pointSpritesEnabled = pXboxRenderStates->GetXboxRenderState(xbox::X_D3DRS_POINTSPRITEENABLE);
if (pointSpritesEnabled) {
pointSpriteOverride = true;
}
for (int XboxStage = 0; XboxStage < xbox::X_D3DTS_STAGECOUNT; XboxStage++) {