From 9ac6bba23a007a8b5a3ee0b7d9573f9d801a2452 Mon Sep 17 00:00:00 2001 From: Jeff Gilbert Date: Tue, 6 Apr 2021 09:47:02 -0700 Subject: [PATCH] Allow either bad-size=>INVALID_OP or bad-stride=>INVALID_VAL for vertexAttribPointer. (#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 --- sdk/tests/conformance/attribs/gl-vertexattribpointer.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/tests/conformance/attribs/gl-vertexattribpointer.html b/sdk/tests/conformance/attribs/gl-vertexattribpointer.html index 52d4117329..1276cec7c9 100644 --- a/sdk/tests/conformance/attribs/gl-vertexattribpointer.html +++ b/sdk/tests/conformance/attribs/gl-vertexattribpointer.html @@ -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); }