From 4130cba8db05526204676a8936e907f1ad681ba5 Mon Sep 17 00:00:00 2001 From: zleoyu Date: Tue, 2 Aug 2022 19:39:45 +0800 Subject: [PATCH] Fix failed test cases. test case: testGetBufferSubData_04 Signed-off-by: zleoyu Change-Id: Ib5f28a6ca3e44a07add40da78375c3a103136ac0 --- graphic/webGL/src/main/js/default/test/WebGL.test05.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/graphic/webGL/src/main/js/default/test/WebGL.test05.js b/graphic/webGL/src/main/js/default/test/WebGL.test05.js index fa9bbf670..8e533afae 100644 --- a/graphic/webGL/src/main/js/default/test/WebGL.test05.js +++ b/graphic/webGL/src/main/js/default/test/WebGL.test05.js @@ -1758,7 +1758,7 @@ describe('webgl1Test_webgl5', function() { const vertices = [1, 2]; gl.bufferData(gl.ARRAY_BUFFER, new Float32Array(vertices), gl.BLEND_SRC_ALPHA); var arrBuffer = new ArrayBuffer(vertices.length * Float32Array.BYTES_PER_ELEMENT); - gl2.getBufferSubData(gl.ARRAY_BUFFER, false, new Int32Array(arrBuffer), 0, 0); + gl2.getBufferSubData(gl.ARRAY_BUFFER, 0, new Int32Array(arrBuffer), 0, 0); const getBufferSubDataError = gl.getError(); console.info("getBufferSubDataError: " + getBufferSubDataError); expect(getBufferSubDataError).assertEqual(gl.NO_ERROR); -- GitLab