mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-12 01:38:37 +12:00
GL: resharper findings (too lazy for const functions)
This commit is contained in:
parent
f9d52ea5b9
commit
a50be7a912
10 changed files with 7 additions and 24 deletions
|
@ -447,13 +447,10 @@ namespace gl
|
|||
|
||||
bool fbo::references_any(const std::vector<GLuint>& resources) const
|
||||
{
|
||||
for (const auto &e : m_resource_bindings)
|
||||
return std::any_of(m_resource_bindings.cbegin(), m_resource_bindings.cend(), [&resources](const auto& e)
|
||||
{
|
||||
if (std::find(resources.begin(), resources.end(), e.second) != resources.end())
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
return std::find(resources.cbegin(), resources.cend(), e.second) != resources.cend();
|
||||
});
|
||||
}
|
||||
|
||||
bool is_primitive_native(rsx::primitive_type in)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue