cancel
Showing results for 
Search instead for 
Did you mean: 

OpenGL & Vulkan

clunis_immensus
Journeyman III

GL_PRIMITIVE_RESTART not working

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

0 Likes
3 Replies
dorisyan
Staff

hi, clunis_immensus, if you could provide the minimum code to reproduce the problem, that'll be very helpful for us to investigate this issue effectively. Thanks.

0 Likes

Unfortunately, it happens only inside our application, and is difficult to reproduce. No opengl errors are generated (glGetError is always GL_NONE).

I was hoping this might be a known issue that someone has reported before.

Correction, the card is Radeon Pro WX3100.

0 Likes

No, I'm afraid we havent received any reports for GL_PRIMITIVE_RESTART recently. The best case is that you can provide the minimal code to reproduce or you can provide your application and let us the steps to reproduce. If the problems is reproducible, then we can investigate the root-cause and provide fix/suggestion if possible. Thanks for your input. 

0 Likes