GL: resharper findings (too lazy for const functions)

This commit is contained in:
Megamouse 2021-04-11 15:55:14 +02:00
parent f9d52ea5b9
commit a50be7a912
10 changed files with 7 additions and 24 deletions

View file

@ -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)