Reduce copying in animation step.

This commit is contained in:
2018-03-27 13:22:52 +02:00
parent e77c68f562
commit 76f92964bf
5 changed files with 7 additions and 6 deletions

View File

@@ -51,7 +51,7 @@ ActivityAnimation::ActivityAnimation(
void ActivityAnimation::draw(float timeScale)
{
const auto vertexBuffer = animate(startingPos, delta, timeScale);
const auto &vertexBuffer = animate(startingPos, delta, timeScale);
glPointSize(5);
glEnableClientState(GL_VERTEX_ARRAY);