pvr overflown detection: workaround for emulators; kos update

This commit is contained in:
Stefanos Kornilios Mitsis Poiitidis
2025-03-28 21:06:52 +02:00
parent 95384c1d0d
commit 375b507cd8
2 changed files with 2 additions and 2 deletions

View File

@@ -575,7 +575,7 @@ size_t vertexBufferFree() {
bool vertexOverflown() {
return PVR_GET(PVR_TA_VERTBUF_POS) >= PVR_GET(PVR_TA_VERTBUF_END) ||
PVR_GET(PVR_TA_OPB_POS)*4 >= PVR_GET(PVR_TA_OPB_END);
(PVR_GET(PVR_TA_OPB_POS)*4 >= PVR_GET(PVR_TA_OPB_END) && PVR_GET(PVR_TA_OPB_POS) != PVR_GET(PVR_TA_OPB_INIT));
}
constexpr size_t freeVertexTarget_Step_Up = 32 * 1024;