diff options
| author | comex <comexk@gmail.com> | 2013-10-29 01:09:01 -0400 |
|---|---|---|
| committer | comex <comexk@gmail.com> | 2013-11-03 20:54:01 -0500 |
| commit | 965b32be9c38cb8f03632ab15f3a0d3aa98004af (patch) | |
| tree | 8b27dd92a256dcbe0a41addf9ea4791332ed03dc /Source/Core/VideoBackends/OGL/Src/SamplerCache.cpp | |
| parent | 00fe5057f13bca3416b9d25a1fe9df27c514b29c (diff) | |
Run code through clang-modernize -loop-convert to create range-based for loops, and manually fix some stuff up.
Diffstat (limited to 'Source/Core/VideoBackends/OGL/Src/SamplerCache.cpp')
| -rw-r--r-- | Source/Core/VideoBackends/OGL/Src/SamplerCache.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/VideoBackends/OGL/Src/SamplerCache.cpp b/Source/Core/VideoBackends/OGL/Src/SamplerCache.cpp index 713b0e21fa..fff3063009 100644 --- a/Source/Core/VideoBackends/OGL/Src/SamplerCache.cpp +++ b/Source/Core/VideoBackends/OGL/Src/SamplerCache.cpp @@ -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(); } |
