pjcozzi's picture

EnableCap.PrimitiveRestart

Hello,

I'm playing around with primitive restart, and I can't find an EnableCap value corresponding to GL_PRIMITIVE_RESTART. Although, GL.PrimitiveRestartIndex() is present and the following example works:

GL.Enable((EnableCap)0x8F9D);
GL.PrimitiveRestartIndex(22);

Am I missing something? I am using 1.0 beta 2 and a core 3.2 profile.

Thanks,
Patrick


Comments

the Fiddler's picture

Seems we overlooked those tokens (page 30 of the 3.2 core spec). Please file a bug report and I will fix this in beta-3.

As a rule of thumb, you can cast from Version31, Version32 and All instead of specifying the hex value for the missing token directly. This should only be necessary in case of a bug such as this, so do report any missing tokens you come across. (The GL specs are huge and some things are bound to escape notice).

pjcozzi's picture

Done: bug report.

Thanks!
Patrick