Forráskód Böngészése

WebGLArrayRenderTarget: Missing options in constructor (#27249)

* missing options constructor

* cleanup format
Renaud Rohlinger 1 éve
szülő
commit
007519bd1e

+ 2 - 2
src/renderers/WebGL3DRenderTarget.js

@@ -3,9 +3,9 @@ import { Data3DTexture } from '../textures/Data3DTexture.js';
 
 
 class WebGL3DRenderTarget extends WebGLRenderTarget {
 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;
 		this.isWebGL3DRenderTarget = true;
 
 

+ 2 - 2
src/renderers/WebGLArrayRenderTarget.js

@@ -3,9 +3,9 @@ import { DataArrayTexture } from '../textures/DataArrayTexture.js';
 
 
 class WebGLArrayRenderTarget extends WebGLRenderTarget {
 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;
 		this.isWebGLArrayRenderTarget = true;