提交 54dd99fc 编写于 作者: M Mr.doob

WebGLRenderer: Avoid missing attribute errors. See #11435

上级 2e314874
......@@ -951,6 +951,10 @@ function WebGLRenderer( parameters ) {
var attribute = attributes.get( geometryAttribute );
// TODO Attribute may not be available on context restore
if ( attribute === undefined ) continue;
var buffer = attribute.buffer;
var type = attribute.type;
var bytesPerElement = attribute.bytesPerElement;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册