提交 29eb3bea 编写于 作者: J Jaume Sanchez

Using context's max attributes number

上级 5eb26ca1
......@@ -8,9 +8,10 @@ THREE.WebGLState = function ( gl, extensions, paramThreeToGL ) {
var color = new THREE.Vector4();
var newAttributes = new Uint8Array( 16 );
var enabledAttributes = new Uint8Array( 16 );
var attributeDivisors = new Uint8Array( 16 );
var maxVertexAttributes = gl.getParameter( gl.MAX_VERTEX_ATTRIBS );
var newAttributes = new Uint8Array( maxVertexAttributes );
var enabledAttributes = new Uint8Array( maxVertexAttributes );
var attributeDivisors = new Uint8Array( maxVertexAttributes );
var capabilities = {};
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册