Browse Source

all DataTextures needs updates at start

gero3 5 years ago
parent
commit
6e15b50e8e
2 changed files with 5 additions and 0 deletions
  1. 2 0
      src/textures/DataTexture2DArray.js
  2. 3 0
      src/textures/DataTexture3D.js

+ 2 - 0
src/textures/DataTexture2DArray.js

@@ -19,6 +19,8 @@ function DataTexture2DArray( data, width, height, depth ) {
 	this.generateMipmaps = false;
 	this.generateMipmaps = false;
 	this.flipY = false;
 	this.flipY = false;
 
 
+	this.needsUpdate = true;
+
 }
 }
 
 
 DataTexture2DArray.prototype = Object.create( Texture.prototype );
 DataTexture2DArray.prototype = Object.create( Texture.prototype );

+ 3 - 0
src/textures/DataTexture3D.js

@@ -27,6 +27,9 @@ function DataTexture3D( data, width, height, depth ) {
 	this.generateMipmaps = false;
 	this.generateMipmaps = false;
 	this.flipY = false;
 	this.flipY = false;
 
 
+	this.needsUpdate = true;
+
+
 }
 }
 
 
 DataTexture3D.prototype = Object.create( Texture.prototype );
 DataTexture3D.prototype = Object.create( Texture.prototype );