mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 05:09:34 -06:00
Run code through clang-modernize -loop-convert to create range-based for loops, and manually fix some stuff up.
This commit is contained in:
@ -112,9 +112,9 @@ void SamplerCache::SetParameters(GLuint sampler_id, const Params& params)
|
||||
|
||||
void SamplerCache::Clear()
|
||||
{
|
||||
for (auto it = m_cache.begin(); it != m_cache.end(); ++it)
|
||||
for (auto& p : m_cache)
|
||||
{
|
||||
glDeleteSamplers(1, &it->second.sampler_id);
|
||||
glDeleteSamplers(1, &p.second.sampler_id);
|
||||
}
|
||||
m_cache.clear();
|
||||
}
|
||||
|
Reference in New Issue
Block a user