diff --git a/examples/opengl3_example/main.cpp b/examples/opengl3_example/main.cpp index 2687da9..6617b4c 100644 --- a/examples/opengl3_example/main.cpp +++ b/examples/opengl3_example/main.cpp @@ -69,7 +69,7 @@ if (neededBufferSize > vbo_max_size) { vbo_max_size = neededBufferSize + 5000; // Grow buffer - glBufferData(GL_ARRAY_BUFFER, neededBufferSize, NULL, GL_STREAM_DRAW); + glBufferData(GL_ARRAY_BUFFER, vbo_max_size, NULL, GL_STREAM_DRAW); } // Copy and convert all vertices into a single contiguous buffer