Add back the self-render check that kept Ridge Racer working.

This hack was removed in #17838
This commit is contained in:
Henrik Rydgård committed 2023-08-08 15:42:52 +02:00
1 parent 38357a2c1c
commit ebfd76d742
1 file changed
+6
+6
View File
@@ -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) {