未验证 提交 b2222485 编写于 作者: F FunFetched 提交者: GitHub

WebGLTextures: mipmapping now works with all texture types #18134

The call to generateMipmap() at the bottom of uploadTexture() was previously assuming _gl.TEXTURE_2D as the texture type, which broke automatic mipmapping for other texture types.
上级 e8f3f036
......@@ -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 );
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册