Changed rendering of lines to use client states (instead of GL_QUADS)