Correctly implement the vertex buffer checks in drawArrays

This is half of #20599. The check for drawElements is a bit more complex
to implement.
This commit is contained in:
Anthony Ramine 2018-07-06 13:18:52 +02:00
parent f0ca100e87
commit 0aefffc5bf
2 changed files with 84 additions and 39 deletions

View file

@ -1,5 +0,0 @@
[draw-arrays-out-of-bounds.html]
type: testharness
[WebGL test #12: getError expected: INVALID_OPERATION. Was NO_ERROR : after evaluating: gl.drawArrays(gl.TRIANGLES, 3, 2)]
expected: FAIL