Skip to content

Commit 6e15b50

Browse files
committed
all DataTextures needs updates at start
1 parent c5323d1 commit 6e15b50

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

src/textures/DataTexture2DArray.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ function DataTexture2DArray( data, width, height, depth ) {
1919
this.generateMipmaps = false;
2020
this.flipY = false;
2121

22+
this.needsUpdate = true;
23+
2224
}
2325

2426
DataTexture2DArray.prototype = Object.create( Texture.prototype );

src/textures/DataTexture3D.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ function DataTexture3D( data, width, height, depth ) {
2727
this.generateMipmaps = false;
2828
this.flipY = false;
2929

30+
this.needsUpdate = true;
31+
32+
3033
}
3134

3235
DataTexture3D.prototype = Object.create( Texture.prototype );

0 commit comments

Comments
 (0)