Browse Source

WebGLArrayRenderTarget: Missing options in constructor (#27249)

* missing options constructor

* cleanup format
Renaud Rohlinger 1 year ago
parent
commit
007519bd1e
2 changed files with 4 additions and 4 deletions
  1. 2 2
      src/renderers/WebGL3DRenderTarget.js
  2. 2 2
      src/renderers/WebGLArrayRenderTarget.js

+ 2 - 2
src/renderers/WebGL3DRenderTarget.js

@@ -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;
 

+ 2 - 2
src/renderers/WebGLArrayRenderTarget.js

@@ -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;