glBegin can start outside of the loop