make OpenGL line primitives work