Skip to content

Commit

Permalink
WebGLRenderTarget: Clean up.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrdoob committed Aug 17, 2021
1 parent 79a0cc8 commit 814b851
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/renderers/WebGLRenderTarget.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,11 @@ 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.isRenderTargetTexture = true;
if ( 'internalFormat' in options ) {

this.texture.internalFormat = options.internalFormat;

}

this.texture.image = { width: width, height: height, depth: 1 };

this.texture.generateMipmaps = options.generateMipmaps !== undefined ? options.generateMipmaps : false;
this.texture.internalFormat = options.internalFormat !== undefined ? options.internalFormat : null;
this.texture.minFilter = options.minFilter !== undefined ? options.minFilter : LinearFilter;

this.depthBuffer = options.depthBuffer !== undefined ? options.depthBuffer : true;
Expand Down

0 comments on commit 814b851

Please sign in to comment.