mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 12:19:12 +00:00
Modernize std::any_of
with ranges
In WiimoteReal.cpp, JitRegCache.cpp, lambda predicates were replaced by pointers to member functions because ranges algorithms are able invoke those. In ConvertDialog.cpp, the `std::mem_fn` helper was removed because ranges algorithms are able to handle pointers to member functions as predicates.
This commit is contained in:
parent
860e6cf5cb
commit
140252ffc0
34 changed files with 69 additions and 82 deletions
|
@ -304,8 +304,8 @@ void OGLGfx::DispatchComputeShader(const AbstractShader* shader, u32 groupsize_x
|
|||
static_cast<const OGLPipeline*>(m_current_pipeline)->GetProgram()->shader.Bind();
|
||||
|
||||
// Barrier to texture can be used for reads.
|
||||
if (std::any_of(m_bound_image_textures.begin(), m_bound_image_textures.end(),
|
||||
[](auto image) { return image != nullptr; }))
|
||||
if (std::ranges::any_of(m_bound_image_textures,
|
||||
[](const auto* image) { return image != nullptr; }))
|
||||
{
|
||||
glMemoryBarrier(GL_TEXTURE_UPDATE_BARRIER_BIT);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue