Skip to content

Commit

Permalink
WebGLArrayRenderTarget: Missing options in constructor (mrdoob#27249)
Browse files Browse the repository at this point in the history
* missing options constructor

* cleanup format
  • Loading branch information
RenaudRohlinger authored and AdaRoseCannon committed Jan 15, 2024
1 parent c9a0e2a commit 7de295a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/renderers/WebGL3DRenderTarget.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ import { Data3DTexture } from '../textures/Data3DTexture.js';

class WebGL3DRenderTarget extends WebGLRenderTarget {

constructor( width = 1, height = 1, depth = 1 ) {
constructor( width = 1, height = 1, depth = 1, options = {} ) {

super( width, height );
super( width, height, options );

this.isWebGL3DRenderTarget = true;

Expand Down
4 changes: 2 additions & 2 deletions src/renderers/WebGLArrayRenderTarget.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ import { DataArrayTexture } from '../textures/DataArrayTexture.js';

class WebGLArrayRenderTarget extends WebGLRenderTarget {

constructor( width = 1, height = 1, depth = 1 ) {
constructor( width = 1, height = 1, depth = 1, options = {} ) {

super( width, height );
super( width, height, options );

this.isWebGLArrayRenderTarget = true;

Expand Down

0 comments on commit 7de295a

Please sign in to comment.