Does RoundLine.Draw() clean up after itself?

Aug 18, 2009 at 7:53 PM

I used RoundLine in my game and what happened was that the lines appeared just as I expected but some of my other drawing code after the RoundLine.Draw() call failed (one triangle strip to be exact). After a few minutes of debugging I noticed that if I call SpriteBatch.Begin() and SpriteBatch.End() before drawing my triangle strip (after the RoundLine.Draw() calls), it works just fine.

Now, unfortunately I don't have enough knowledge to debug RoundLine.Draw(). I have a feeling that this might be related to vertex / index buffers, which I know just about nothing of. Can anyone help?