WebGLTextures: mipmapping now works with all texture types #18134
@@ -805,7 +805,7 @@ function WebGLTextures( _gl, extensions, state, properties, capabilities, utils,
if ( textureNeedsGenerateMipmaps( texture, supportsMips ) ) {
- generateMipmap( _gl.TEXTURE_2D, texture, image.width, image.height );
+ generateMipmap( textureType, texture, image.width, image.height );
}