Skip to content

Commit

Permalink
WebGLRenderTarget: Clean up.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrdoob committed Jun 5, 2021
1 parent f4569ee commit 268aeae
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/renderers/WebGLRenderTarget.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 268aeae

Please sign in to comment.