|
@@ -417,23 +417,7 @@ function WebGLState( gl, extensions, utils ) {
|
|
|
|
|
|
function enableAttribute( attribute ) {
|
|
|
|
|
|
- newAttributes[ attribute ] = 1;
|
|
|
-
|
|
|
- if ( enabledAttributes[ attribute ] === 0 ) {
|
|
|
-
|
|
|
- gl.enableVertexAttribArray( attribute );
|
|
|
- enabledAttributes[ attribute ] = 1;
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- if ( attributeDivisors[ attribute ] !== 0 ) {
|
|
|
-
|
|
|
- var extension = extensions.get( 'ANGLE_instanced_arrays' );
|
|
|
-
|
|
|
- extension.vertexAttribDivisorANGLE( attribute, 0 );
|
|
|
- attributeDivisors[ attribute ] = 0;
|
|
|
-
|
|
|
- }
|
|
|
+ enableAttributeAndDivisor( attribute, 0 );
|
|
|
|
|
|
}
|
|
|
|