Skip to content

Commit

Permalink
Add back the self-render check that kept Ridge Racer working.
Browse files Browse the repository at this point in the history
This hack was removed in #17838
  • Loading branch information
hrydgard committed Aug 8, 2023
1 parent 38357a2 commit ebfd76d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions GPU/Common/DrawEngineCommon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -836,6 +836,12 @@ void DrawEngineCommon::SubmitPrim(const void *verts, const void *inds, GEPrimiti
DecodeVertsStep(decoded_, decodeCounter_, decodedVerts_, &dc.uvScale);
decodeCounter_++;
}

if (prim == GE_PRIM_RECTANGLES && (gstate.getTextureAddress(0) & 0x3FFFFFFF) == (gstate.getFrameBufAddress() & 0x3FFFFFFF)) {
// This prevents issues with consecutive self-renders in Ridge Racer.
gstate_c.Dirty(DIRTY_TEXTURE_PARAMS);
DispatchFlush();
}
}

bool DrawEngineCommon::CanUseHardwareTransform(int prim) {
Expand Down

0 comments on commit ebfd76d

Please sign in to comment.