mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-05 19:19:39 -06:00
Fix bug that caused multiple calls glBufferData(...)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user