mirror of https://github.com/axmolengine/axmol.git
Apply suggestions from code review
This commit is contained in:
parent
5146fa3c93
commit
40304860e6
|
@ -329,7 +329,7 @@ void CommandBufferGL::bindVertexBuffer(ProgramGL *program) const
|
|||
const auto& vertexLayouts = getVertexLayouts();
|
||||
for (const auto& vertexBuffer : _vertexBuffers)
|
||||
{
|
||||
if (! vertexBuffer || attributeInfos.empty())
|
||||
if (! vertexBuffer)
|
||||
continue;
|
||||
|
||||
glBindBuffer(GL_ARRAY_BUFFER, vertexBuffer->getHandler());
|
||||
|
|
Loading…
Reference in New Issue