Added degenerate primitive checking to triangle strip and fan primitives
since the GPU does not render them anyway, it is unknown whether it could
be done for line strips if two vertices are sequentially exactly the same.