Why is that? Running it with "3" (as the tutorial does) does actually work, but renders only one triangle (the first three vertices). I do aim to render six vertices making up two triangles forming a square.
//Edit: having VertexAttribPointer at 3 and DrawArrays at 6 seems to work and makes sense now. I did not see the functions context and that it does not refer to the vertex count of the entire buffer but to the format thereof.
nonsenseinc
Member Since 18 Nov 2012Offline Last Active Nov 19 2012 04:38 AM

Find content
Not Telling