提交 4130cba8 编写于 作者: Z zleoyu

Fix failed test cases.

test case: testGetBufferSubData_04
Signed-off-by: Nzleoyu <zhangleiyu1@huawei.com>
Change-Id: Ib5f28a6ca3e44a07add40da78375c3a103136ac0
上级 afaa18ad
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册