Skip to content

Commit

Permalink
Allow either bad-size=>INVALID_OP or bad-stride=>INVALID_VAL for vert…
Browse files Browse the repository at this point in the history
…exAttribPointer. (KhronosGroup#3269)

Bad size is specified as INVALID_OPERATION here:
https://www.khronos.org/registry/webgl/specs/latest/1.0/#5.14.10

Too-large stride is specified as INVALID_VALUE here:
https://www.khronos.org/registry/webgl/specs/latest/1.0/#6.13
  • Loading branch information
kdashg authored Apr 6, 2021
1 parent a0b8774 commit 9ac6bba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sdk/tests/conformance/attribs/gl-vertexattribpointer.html
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@
gl, size < info.minSize ? gl.INVALID_OPERATION : gl.NO_ERROR, "at stride limit",
size, info.type, false, stride, offset);
checkVertexAttribPointer(
gl, size < info.minSize ? gl.INVALID_OPERATION : gl.INVALID_VALUE, "over stride limit",
gl, size < info.minSize ? [gl.INVALID_OPERATION, gl.INVALID_VALUE] : gl.INVALID_VALUE, "over stride limit",
size, info.type, false,
stride + info.bytesPerComponent, offset);
}
Expand Down

0 comments on commit 9ac6bba

Please sign in to comment.