Dear OpenTK Community,
As far as I know the Element Array is part of the VAO state. That means there should be no reason to bind it before a DrawCall with a VAO bound.
GL.BindVertexArray(base.VAO_1); // This line is not needed GL.BindBuffer(BufferTarget.ElementArrayBuffer, base.VBO_ELEMENTS); GL.DrawElements(PrimitiveType.Quads, base.elements.Length, DrawElementsType.UnsignedInt, 0); GL.BindVertexArray(0);
The bad thing is if I leave the marked line out it just doesn't work. Is there something I miss / do wrong?