Skip to content

Commit

Permalink
rsx: Fix shader cache of 2 or less pipelines
Browse files Browse the repository at this point in the history
  • Loading branch information
elad335 committed Jan 2, 2021
1 parent 7c46fb9 commit c0ed60a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions rpcs3/Emu/RSX/rsx_cache.h
Original file line number Diff line number Diff line change
Expand Up @@ -596,19 +596,19 @@ namespace rsx
return;
}

u32 entry_count = 0;
std::vector<fs::dir_entry> entries;
for (auto It = root.begin(); It != root.end(); ++It, entry_count++)
{
fs::dir_entry tmp = *It;

for (auto&& tmp : root)
{
if (tmp.is_directory || tmp.name.ends_with(".temp"))
continue;

entries.push_back(tmp);
}

if ((entry_count = ::size32(entries)) <= 2)
u32 entry_count = ::size32(entries);

if (!entry_count)
return;

root.rewind();
Expand Down

0 comments on commit c0ed60a

Please sign in to comment.