3 Replies Latest reply on Dec 25, 2018 8:53 PM by xhuang

    GL_PRIMITIVE_RESTART not working

    clunis_immensus

      glEnable(GL_PRIMITIVE_RESTART);

      glPrimitiveRestartIndex(0xffffffff);

      glDrawElements(GL_LINE_STRIP, elementCount, GL_UNSIGNED_INT, 0);

       

      Sometimes this does not work, and an extra line segment is drawn to (0,0) for every line strip in the list.

       

      I've tested on FirePro W5100 and W3100