Fix bug that caused multiple calls glBufferData(...)

This commit is contained in:
Erik Broberg
2016-06-06 13:35:11 -04:00
parent 08af82a82a
commit c95363a732

View File

@@ -119,6 +119,7 @@ bool TriangleSoup::updateDataInGPU() {
}
}
// First VAO setup
glBindVertexArray(_vaoID);
@@ -158,6 +159,9 @@ bool TriangleSoup::updateDataInGPU() {
GL_STATIC_DRAW);
glBindVertexArray(0);
_gpuDataNeedUpdate = false;
return true;
}