Skip to content

Commit 71e98c9

Browse files
authored
Merge pull request #17550 from gero3/AllDataTexturesNeedsUpdates
All DataTextures needs updates at start
2 parents 9a9243a + 6e15b50 commit 71e98c9

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)