Let's stop copying objs.

This commit is contained in:
Jonathas Costa
2018-08-06 11:03:22 -04:00
parent 3a14340fbb
commit ac76151941

View File

@@ -1316,7 +1316,7 @@ void RenderablePlanesCloud::createPlanes() {
}
// Send data to GPU
for (const std::pair<int, PlaneAggregate> pAMapItem : _planesMap) {
for (const std::pair<const int, PlaneAggregate>& pAMapItem : _planesMap) {
glBindVertexArray(pAMapItem.second.vao);
glBindBuffer(GL_ARRAY_BUFFER, pAMapItem.second.vbo);
glBufferData(