I have a vertex array that is being processed, then drawn to a RenderWindow. After calling display on the window, I want to clear the vertex array, making it ready for another round of processing. However, when clearing it - nothing shows up in the window. It works when not clearing, but now I'm drawing junk since the number of vertices differ between frames...
my loop (pseudo):
populate vertex array
clear window
draw vertex array to window
display window
clear vertex array (now nothing shows in window)
Am i doing something wrong here (probably)? Help!