未验证 提交 7d387c36 编写于 作者: M Mr.doob 提交者: GitHub

Merge pull request #15904 from merwaaan/fix-flipped-resizing

Fix non power-of-2 textures being flipped when resized
......@@ -65,7 +65,7 @@ function WebGLTextures( _gl, extensions, state, properties, capabilities, utils,
console.warn( 'THREE.WebGLRenderer: Texture has been resized from (' + image.width + 'x' + image.height + ') to (' + width + 'x' + height + ').' );
return useOffscreenCanvas ? canvas.transferToImageBitmap() : canvas;
return canvas;
} else {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册