提交 d29d97fb 编写于 作者: B Ben Adams

rendertarget resizable

drop current rendertarget when resized; will be recreated in next render
上级 5603241c
......@@ -39,9 +39,14 @@ THREE.WebGLRenderTarget.prototype = {
setSize: function ( width, height ) {
this.width = width;
this.height = height;
if ( this.width !== width || this.height !== height ) {
this.width = width;
this.height = height;
this.dispose();
}
},
clone: function () {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册