
EnableCap.PrimitiveRestart
Posted Wednesday, 25 November, 2009 - 22:49 by pjcozzi inHello,
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
Re: EnableCap.PrimitiveRestart
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,Version32andAllinstead 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).Re: EnableCap.PrimitiveRestart
Done: bug report.
Thanks!
Patrick