1
0
Эх сурвалжийг харах

CanvasRenderer: Ignore CompressedTextures.

Mr.doob 12 жил өмнө
parent
commit
fad3d3699c

+ 2 - 0
src/renderers/CanvasRenderer.js

@@ -782,6 +782,8 @@ THREE.CanvasRenderer = function ( parameters ) {
 
 	function textureToPattern( texture ) {
 
+		if ( texture instanceof THREE.CompressedTexture ) return;
+
 		var repeatX = texture.wrapS === THREE.RepeatWrapping;
 		var repeatY = texture.wrapT === THREE.RepeatWrapping;
 

粤ICP备19079148号