提交 8f97b75b 编写于 作者: M Mr.doob

WebGLRenderer: Moved state.initAttributes to setupVertexAttributes.

上级 25ff6621
......@@ -886,6 +886,8 @@ THREE.WebGLRenderer = function ( parameters ) {
}
state.initAttributes();
var geometryAttributes = geometry.attributes;
var programAttributes = program.getAttributes();
......@@ -964,6 +966,7 @@ THREE.WebGLRenderer = function ( parameters ) {
} else if ( materialDefaultAttributeValues !== undefined ) {
var value = materialDefaultAttributeValues[ name ];
if ( value !== undefined ) {
switch ( value.length ) {
......@@ -1017,12 +1020,6 @@ THREE.WebGLRenderer = function ( parameters ) {
}
if ( updateBuffers ) {
state.initAttributes();
}
// morph targets
var morphTargetInfluences = object.morphTargetInfluences;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册