Run code through clang-modernize -loop-convert to create range-based for loops, and manually fix some stuff up.

This commit is contained in:
comex committed 2013-11-03 20:54:01 -05:00
1 parent 00fe5057f1
commit 965b32be9c
90 files changed
+688 -739

No files matched your search

@@ -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();
}