diff --git a/src/renderers/webgl/WebGLTextures.js b/src/renderers/webgl/WebGLTextures.js index b3c20e0a771f88..33f00fb8c71818 100644 --- a/src/renderers/webgl/WebGLTextures.js +++ b/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; }