Fixed flushing logic.
Acted further to minimise OpenGL traffic, at least until I implement moving objects.