Explorar el Código

Updated builds.

Mugen87 hace 3 años
padre
commit
1a4c315bf2
Se han modificado 4 ficheros con 6 adiciones y 6 borrados
  1. 2 2
      build/three.cjs
  2. 2 2
      build/three.js
  3. 0 0
      build/three.min.js
  4. 2 2
      build/three.module.js

+ 2 - 2
build/three.cjs

@@ -17058,7 +17058,7 @@ function WebGLTextures(_gl, extensions, state, properties, capabilities, utils,
 			let mipmap;
 			const mipmaps = texture.mipmaps;
 			const useTexStorage = isWebGL2 && texture.isVideoTexture !== true;
-			const allocateMemory = textureProperties.__version === undefined || forceUpload === true;
+			const allocateMemory = source.__currentVersion === undefined || forceUpload === true;
 			const levels = getMipLevels(texture, image, supportsMips);
 
 			if (texture.isDepthTexture) {
@@ -17288,7 +17288,7 @@ function WebGLTextures(_gl, extensions, state, properties, capabilities, utils,
 						glType = utils.convert(texture.type),
 						glInternalFormat = getInternalFormat(texture.internalFormat, glFormat, glType, texture.encoding);
 			const useTexStorage = isWebGL2 && texture.isVideoTexture !== true;
-			const allocateMemory = textureProperties.__version === undefined;
+			const allocateMemory = source.__currentVersion === undefined || forceUpload === true;
 			let levels = getMipLevels(texture, image, supportsMips);
 			setTextureParameters(_gl.TEXTURE_CUBE_MAP, texture, supportsMips);
 			let mipmaps;

+ 2 - 2
build/three.js

@@ -17060,7 +17060,7 @@
 				let mipmap;
 				const mipmaps = texture.mipmaps;
 				const useTexStorage = isWebGL2 && texture.isVideoTexture !== true;
-				const allocateMemory = textureProperties.__version === undefined || forceUpload === true;
+				const allocateMemory = source.__currentVersion === undefined || forceUpload === true;
 				const levels = getMipLevels(texture, image, supportsMips);
 
 				if (texture.isDepthTexture) {
@@ -17290,7 +17290,7 @@
 							glType = utils.convert(texture.type),
 							glInternalFormat = getInternalFormat(texture.internalFormat, glFormat, glType, texture.encoding);
 				const useTexStorage = isWebGL2 && texture.isVideoTexture !== true;
-				const allocateMemory = textureProperties.__version === undefined;
+				const allocateMemory = source.__currentVersion === undefined || forceUpload === true;
 				let levels = getMipLevels(texture, image, supportsMips);
 				setTextureParameters(_gl.TEXTURE_CUBE_MAP, texture, supportsMips);
 				let mipmaps;

La diferencia del archivo ha sido suprimido porque es demasiado grande
+ 0 - 0
build/three.min.js


+ 2 - 2
build/three.module.js

@@ -23032,7 +23032,7 @@ function WebGLTextures( _gl, extensions, state, properties, capabilities, utils,
 			const mipmaps = texture.mipmaps;
 
 			const useTexStorage = ( isWebGL2 && texture.isVideoTexture !== true );
-			const allocateMemory = ( textureProperties.__version === undefined ) || ( forceUpload === true );
+			const allocateMemory = ( source.__currentVersion === undefined ) || ( forceUpload === true );
 			const levels = getMipLevels( texture, image, supportsMips );
 
 			if ( texture.isDepthTexture ) {
@@ -23403,7 +23403,7 @@ function WebGLTextures( _gl, extensions, state, properties, capabilities, utils,
 				glInternalFormat = getInternalFormat( texture.internalFormat, glFormat, glType, texture.encoding );
 
 			const useTexStorage = ( isWebGL2 && texture.isVideoTexture !== true );
-			const allocateMemory = ( textureProperties.__version === undefined );
+			const allocateMemory = ( source.__currentVersion === undefined ) || ( forceUpload === true );
 			let levels = getMipLevels( texture, image, supportsMips );
 
 			setTextureParameters( 34067, texture, supportsMips );

Algunos archivos no se mostraron porque demasiados archivos cambiaron en este cambio