Hi
For some reason, when I index a location on a VertexArray higher than the array's capacity, the game force-closes without any trace or error.
Minimal code:
static void Main(string[] args)
{
RenderWindow window = new RenderWindow(new VideoMode(800, 600), "Vertex Test", Styles.Close, new ContextSettings() { AntialiasingLevel = 2 });
window.Closed += (s, e) => { window.Close(); };
VertexArray vertices = new VertexArray(PrimitiveType.Quads, 4);
vertices[4] = new Vertex(new Vector2f(10, 10), Color.Red);
while (window.IsOpen())
{
window.DispatchEvents();
window.Draw(vertices);
window.Display();
}
}
I'm using SFML.NET 2.1 on Windows 7, Visual Studio 2010.