Ridge Racer hack: Flush after every prim if fb addr == tex addr.

Fixes the bloom errors. @unknownbrackets discovered this method.

Not sure if I want to merge this.. It does add yet another check
to a critical path.
This commit is contained in:
Henrik Rydgard 2014-06-22 20:37:50 +02:00
parent b2ae317560
commit 8b60fe0239

View File

@ -331,6 +331,11 @@ void TransformDrawEngine::SubmitPrim(void *verts, void *inds, GEPrimitiveType pr
DecodeVertsStep();
decodeCounter_++;
}
if (prim == GE_PRIM_RECTANGLES && (gstate.getTextureAddress(0) & 0x3FFFFFFF) == (gstate.getFrameBufAddress() & 0x3FFFFFFF)) {
gstate_c.textureChanged |= TEXCHANGE_PARAMSONLY;
Flush();
}
}
void TransformDrawEngine::DecodeVerts() {