浏览代码

Merge pull request #17550 from gero3/AllDataTexturesNeedsUpdates

All DataTextures needs updates at start
Michael Herzog 5 年之前
父节点
当前提交
71e98c9a08
共有 2 个文件被更改,包括 5 次插入0 次删除
  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 );