mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-08-09 09:39:44 +00:00
rsx: Fix shader cache of 2 or less pipelines
This commit is contained in:
parent
247e90b3d0
commit
21d725daa5
1 changed files with 5 additions and 3 deletions
|
@ -596,9 +596,9 @@ namespace rsx
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
u32 entry_count = 0;
|
|
||||||
std::vector<fs::dir_entry> entries;
|
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)
|
if (tmp.is_directory)
|
||||||
continue;
|
continue;
|
||||||
|
@ -606,7 +606,9 @@ namespace rsx
|
||||||
entries.push_back(tmp);
|
entries.push_back(tmp);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((entry_count = ::size32(entries)) <= 2)
|
u32 entry_count = ::size32(entries);
|
||||||
|
|
||||||
|
if (!entry_count)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
root.rewind();
|
root.rewind();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue