Commits

Chuck Adams  committed c274ed0

The VBO only needs 12 floats, not 24

  • Participants
  • Parent commits bca79bd

Comments (0)

Files changed (1)

File src/main/java/com/ra4king/opengl/arcsynthesis/gl32/chapter1/Example1_1.java

 		vbo = glGenBuffers();
 		
 		glBindBuffer(GL_ARRAY_BUFFER, vbo);
-		glBufferData(GL_ARRAY_BUFFER, (FloatBuffer)BufferUtils.createFloatBuffer(24).put(new float[] { 0.75f,  0.75f, 0.0f, 1.0f,
+		glBufferData(GL_ARRAY_BUFFER, (FloatBuffer)BufferUtils.createFloatBuffer(12).put(new float[] { 0.75f,  0.75f, 0.0f, 1.0f,
 																									   0.75f, -0.75f, 0.0f, 1.0f,
 																									  -0.75f, -0.75f, 0.0f, 1.0f}).flip(),GL_STATIC_DRAW);