Skip to content

Commit

Permalink
WebGLTextures: Clarified textureNeedsGenerateMipmaps()
Browse files Browse the repository at this point in the history
  • Loading branch information
mrdoob committed Jun 8, 2017
1 parent 67423ab commit fd13fb4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/renderers/webgl/WebGLTextures.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;

}

Expand Down

0 comments on commit fd13fb4

Please sign in to comment.