未验证 提交 0e3eb320 编写于 作者: O openharmony_ci 提交者: Gitee

!4765 【OpenHarmony】【master】webGL测试用例修复

Merge pull request !4765 from zleoyu/master
......@@ -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.
先完成此消息的编辑!
想要评论请 注册