Remove glBegin/glEnd in favor glVertexPointer/glColorPointer/glDrawArrays. Still deprecated, but less so.