Explorar el Código

Based on the incoming cubeTexture unpackAlignment

zouzouzou11 hace 5 años
padre
commit
9efb8ea920
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/renderers/webgl/WebGLTextures.js

+ 1 - 1
src/renderers/webgl/WebGLTextures.js

@@ -713,7 +713,7 @@ function WebGLTextures( _gl, extensions, state, properties, capabilities, utils,
 		const isCompressed = ( texture && ( texture.isCompressedTexture || texture.image[ 0 ].isCompressedTexture ) );
 		const isDataTexture = ( texture.image[ 0 ] && texture.image[ 0 ].isDataTexture );
 
-		if ( texture.image[ 0 ] ) _gl.pixelStorei( _gl.UNPACK_ALIGNMENT, texture.image[ 0 ].unpackAlignment );
+		if ( texture.image[ 0 ] ) _gl.pixelStorei( _gl.UNPACK_ALIGNMENT, texture.unpackAlignment );
 
 		const cubeImage = [];
 

粤ICP备19079148号