Browse Source

CanvasRenderer: Ignore CompressedTextures.

Mr.doob 11 years ago
parent
commit
fad3d3699c
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/renderers/CanvasRenderer.js

+ 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;