1
Vote

Throw Exception if SpriteBatch.Draw is called before SpriteBatch.Begin or after SpriteBatch.End

description

Probably a low priority, however SpriteBatch.Draw and SpriteBatch.DrawString should only be callable after SpriteBatch.Begin and before SpriteBatch.End. The XNA platform will throw an "InvalidOperationException" with the message "Begin must be called successfully before a Draw can be called."

comments