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 243187f commit c7d3376
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions rpcs3/Emu/RSX/rsx_cache.h
Original file line number Diff line number Diff line change
Expand Up @@ -596,17 +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++)

for (auto&& tmp : root)
{
if (tmp.is_directory)
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 c7d3376

Please sign in to comment.