KhronosGroup / KhronosGroup/OpenGL-API

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

Open
#81 1 comment 1 reaction 1 assignee Claimed by @ianromanick View on GitHub
Dominant language
No language data
Stars
42
Forks
8
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.