|
@@ -40,12 +40,12 @@ THREE.WebGLRenderTarget.prototype = {
|
|
this.width = width;
|
|
this.width = width;
|
|
this.height = height;
|
|
this.height = height;
|
|
|
|
|
|
- this.viewport.set( 0, 0, width, height );
|
|
|
|
-
|
|
|
|
this.dispose();
|
|
this.dispose();
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ this.viewport.set( 0, 0, width, height );
|
|
|
|
+
|
|
},
|
|
},
|
|
|
|
|
|
setViewport: function ( x, y, width, height ) {
|
|
setViewport: function ( x, y, width, height ) {
|
|
@@ -65,6 +65,8 @@ THREE.WebGLRenderTarget.prototype = {
|
|
this.width = source.width;
|
|
this.width = source.width;
|
|
this.height = source.height;
|
|
this.height = source.height;
|
|
|
|
|
|
|
|
+ this.viewport.copy( source.viewport );
|
|
|
|
+
|
|
this.texture = source.texture.clone();
|
|
this.texture = source.texture.clone();
|
|
|
|
|
|
this.depthBuffer = source.depthBuffer;
|
|
this.depthBuffer = source.depthBuffer;
|