Skip to content

Commit 7b242d0

Browse files
authored
Fix expected error codes for compressed texture updates (#3773)
1 parent f6ee1b4 commit 7b242d0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sdk/tests/js/tests/compressed-tex-image.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ if (!gl) {
3030
shouldBe("formats.length", "0");
3131

3232
wtu.shouldGenerateGLError(gl, gl.NO_ERROR, "gl.texImage2D(gl.TEXTURE_2D, 0, gl.RGBA, 4, 4, 0, gl.RGBA, gl.UNSIGNED_BYTE, new Uint8Array(4*4*4));");
33-
wtu.shouldGenerateGLError(gl, gl.INVALID_ENUM,
33+
wtu.shouldGenerateGLError(gl, [gl.INVALID_ENUM, gl.INVALID_OPERATION],
3434
"gl.compressedTexSubImage2D(gl.TEXTURE_2D, 0, 0, 0, 4, 4, COMPRESSED_RGB_PVRTC_4BPPV1_IMG, new Uint8Array(8));");
3535

3636
// Check too-many and too-few args.

0 commit comments

Comments
 (0)