Skip to content

Commit

Permalink
Fix description of drawRangeElements out-of-range behavior. (#3713)
Browse files Browse the repository at this point in the history
It should have linked to the WebGL 1.0 spec's description of enabled
vertex array attributes and range checking.

Fixes #3710.
  • Loading branch information
kenrussell authored Feb 7, 2025
1 parent e50ddff commit dd28c22
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions specs/latest/2.0/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2486,10 +2486,10 @@ <h4><a name="WRITING_TO_THE_DRAWING_BUFFER">Writing to the drawing buffer</a></h
<code>drawElements</code> in the section <a href="../1.0/index.html#WRITING_TO_THE_DRAWING_BUFFER">Writing
to the drawing buffer</a> of the WebGL 1.0 specification apply.<br><br>

In addition, if indices used to draw are outside the range of [<em>start</em>, <em>end</em>], an imeplementation
can either guarantee the behaviors defined in <a href="../1.0/index.html#OUT_OF_RANGE_ARRAY_ACCESSES">Out-of-Range
Array Accesses</a>, or simply discard the arguments <em>start</em> and <em>end</em> and call <code>drawElements</code>
instead. In either situation, no GL errors should be generated for this cause.
In addition, if indices used to draw are outside the range of [<em>start</em>, <em>end</em>], an implementation
can either guarantee the behaviors defined in <a href="../1.0/index.html#ATTRIBS_AND_RANGE_CHECKING">Enabled
Vertex Attributes and Range Checking</a>, or simply discard the arguments <em>start</em> and <em>end</em> and
call <code>drawElements</code> instead. In either situation, no GL errors should be generated for this cause.
</dd>
</dl>

Expand Down

0 comments on commit dd28c22

Please sign in to comment.