I'm seeing some odd behavior and hoping you can shed
some light. When I render a shape (say a GL_LINE_LOOP)
and one or more of the vertices falls outside the
viewport, those vertices are removed from the loop
instead of being clipped to the viewport boundary. So
for example, if I render a square and one vertex falls
outside the viewport, I will see a triangle instead of
a clipped square.