Apply suggestions from code review

This commit is contained in:
Arnold 2019-03-18 09:33:43 +08:00 committed by GitHub
parent 5146fa3c93
commit 40304860e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -329,7 +329,7 @@ void CommandBufferGL::bindVertexBuffer(ProgramGL *program) const
const auto& vertexLayouts = getVertexLayouts(); const auto& vertexLayouts = getVertexLayouts();
for (const auto& vertexBuffer : _vertexBuffers) for (const auto& vertexBuffer : _vertexBuffers)
{ {
if (! vertexBuffer || attributeInfos.empty()) if (! vertexBuffer)
continue; continue;
glBindBuffer(GL_ARRAY_BUFFER, vertexBuffer->getHandler()); glBindBuffer(GL_ARRAY_BUFFER, vertexBuffer->getHandler());