Skip to content

GL 4.6 compatibility spec is self contradictory about primitive restart and ArrayElement #81

@ianromanick

Description

@ianromanick

Section 10.7.4 (Transferring Vertices With ArrayElement) says:

If ArrayElement is called while primitive restart is enabled (see section 10.3.6 and i is equal to the primitive restart index, then no vertex data is dereferenced, and no current vertex state is modified. Instead, it is as if End were called, followed by a call to Begin where mode is the same as the mode used by the previous Begin.

But section 10.3.6 (Primitive Restart) says;

Note that primitive restart is not performed for array elements transferred by any drawing command not taking a type parameter, including ArrayElement and all of the *Draw* commands other than *DrawElements*.

  1. Is glArrayElement subject to primitive restart or not? The two spec quotations say the opposite thing.
  2. Is glDrawRangeElements subject to primitive restart or not? Section 10.3.6 seems to exclude it, but I doubt that was intended.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions