mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-11-22 02:32:36 +01:00
Fix underflow in ZCULL sync
This commit is contained in:
parent
0cc981ec18
commit
a0e2a3db1d
@ -490,7 +490,8 @@ namespace rsx
|
||||
|
||||
// Delete all statistics caches but leave the current one
|
||||
const u32 current_index = m_statistics_tag_id;
|
||||
for (u32 index = current_index - 1; index != current_index;)
|
||||
const u32 previous_index = (current_index + max_stat_registers - 1) % max_stat_registers;
|
||||
for (u32 index = previous_index; index != current_index;)
|
||||
{
|
||||
if (m_statistics_map[index].flags == 0)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user