Fixed vertex array out of bounds
This commit is contained in:
parent
9f7f5127a0
commit
8b44c519f7
1 changed files with 1 additions and 1 deletions
|
@ -152,7 +152,7 @@ function drawScene()
|
||||||
gl.enableVertexAttribArray(color);
|
gl.enableVertexAttribArray(color);
|
||||||
|
|
||||||
gl.viewport(0,0, gl.canvas.width, gl.canvas.height);
|
gl.viewport(0,0, gl.canvas.width, gl.canvas.height);
|
||||||
gl.drawArrays(gl.POINTS, 0, vertices.length / 3);
|
gl.drawArrays(gl.POINTS, 0, vertices.length / 6);
|
||||||
}
|
}
|
||||||
|
|
||||||
var then = 0;
|
var then = 0;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue