Commits

Roi Atalla committed 0ef567b

Fixed small mistake in Example1_1 where I created a FloatBuffer with capacity of 24 instead of 12. Credit goes to Whiteclaws from #ludumdare channel on IRC server AfterNET.

  • Participants
  • Parent commits 1f0be8c

Comments (0)

Files changed (1)

File src/com/ra4king/opengl/arcsynthesis/gl33/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);