[core] Fix bugprone-too-small-loop-variable errors

As reported by clang-tidy-8.
This commit is contained in:
Thiago Marcos P. Santos
2020-03-27 18:20:33 +02:00
parent 31338c5d88
commit b4e9c0bd11
7 changed files with 10 additions and 8 deletions

View File

@@ -12,6 +12,8 @@ void VertexArray::bind(Context& context,
state->indexBuffer = indexBuffer.getResource<gl::IndexBufferResource>().buffer;
state->bindings.reserve(bindings.size());
// NOLINTNEXTLINE(bugprone-too-small-loop-variable)
for (AttributeLocation location = 0; location < bindings.size(); ++location) {
if (state->bindings.size() <= location) {
state->bindings.emplace_back(context, AttributeLocation(location));