Browse Source

WebGLTextures: Clarified textureNeedsGenerateMipmaps()

Mr.doob 8 years ago
parent
commit
fd13fb4d32
1 changed files with 3 additions and 3 deletions
  1. 3 3
      src/renderers/webgl/WebGLTextures.js

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

@@ -72,9 +72,9 @@ function WebGLTextures( _gl, extensions, state, properties, capabilities, paramT
 	}
 
 	function textureNeedsGenerateMipmaps( texture, isPowerOfTwo ) {
-		
-		return isPowerOfTwo && texture.generateMipmaps && texture.minFilter !== NearestFilter && 
-			texture.minFilter !== LinearFilter;
+
+		return texture.generateMipmaps && isPowerOfTwo &&
+			texture.minFilter !== NearestFilter && texture.minFilter !== LinearFilter;
 
 	}