提交 268aeae3 编写于 作者: M Mr.doob

WebGLRenderTarget: Clean up.

上级 f4569ee8
......@@ -27,10 +27,7 @@ class WebGLRenderTarget extends EventDispatcher {
this.texture = new Texture( undefined, options.mapping, options.wrapS, options.wrapT, options.magFilter, options.minFilter, options.format, options.type, options.anisotropy, options.encoding );
this.texture.image = {};
this.texture.image.width = width;
this.texture.image.height = height;
this.texture.image.depth = 1;
this.texture.image = { width: width, height: height, depth: 1 };
this.texture.generateMipmaps = options.generateMipmaps !== undefined ? options.generateMipmaps : false;
this.texture.minFilter = options.minFilter !== undefined ? options.minFilter : LinearFilter;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册