@@ -1859,10 +1859,11 @@
this.viewport = new Vector4(0, 0, width, height);
options = options || {};
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;
this.depthBuffer = options.depthBuffer !== undefined ? options.depthBuffer : true;
@@ -2452,10 +2452,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 = { width: width, height: height, depth: 1 };