[core] Fix bugprone-too-small-loop-variable errors
As reported by clang-tidy-8.
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user