diff --git a/VBO/src/main/VBO.java b/VBO/src/main/VBO.java index 10d148b..0c4e8d5 100644 --- a/VBO/src/main/VBO.java +++ b/VBO/src/main/VBO.java @@ -87,6 +87,7 @@ public class VBO { public void bufferData(){ glBindBuffer(GL_ARRAY_BUFFER, vboID); glBufferData(GL_ARRAY_BUFFER, buffer, GL_STATIC_DRAW); +// glBufferSubData(vboID, 0, buffer); glBindBuffer(GL_ARRAY_BUFFER, 0); bufferSize = buffer.limit() / 7;// 7 = 3 vertex(x,y,z) + 4 color (r,g,b,a) }