Skip to content

Commit

Permalink
igl | opengl | Reduce vector copying in RenderPipelineState::bindVert…
Browse files Browse the repository at this point in the history
…exAttributes().
  • Loading branch information
vinsentli committed Dec 24, 2024
1 parent ef5360a commit 793ecfd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/igl/opengl/RenderPipelineState.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -275,8 +275,8 @@ void RenderPipelineState::bindVertexAttributes(size_t bufferIndex, size_t buffer
}
#endif

const auto attribList = static_cast<VertexInputState*>(desc_.vertexInputState.get())
->getAssociatedAttributes(bufferIndex);
const auto& attribList = static_cast<VertexInputState*>(desc_.vertexInputState.get())
->getAssociatedAttributes(bufferIndex);
auto& locations = bufferAttribLocations_[bufferIndex];

// attributeList and locations should have an 1-to-1 correspondence
Expand Down

0 comments on commit 793ecfd

Please sign in to comment.