Reduce copying in animation step.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user