Skip to content

Commit

Permalink
Merge pull request #17871 from hrydgard/ridge-racer-fix-again
Browse files Browse the repository at this point in the history
Add back the self-render check that kept Ridge Racer working.
  • Loading branch information
hrydgard authored Aug 8, 2023
2 parents 38357a2 + ebfd76d commit 0c8a397
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 0c8a397

Please sign in to comment.