Browse Source

Make copyTextureToTexture generate mipmaps if needed

Fixes #14423
Frank Olivier 5 năm trước cách đây
mục cha
commit
807aca8f2d
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      src/renderers/WebGLRenderer.js

+ 2 - 0
src/renderers/WebGLRenderer.js

@@ -2820,6 +2820,8 @@ function WebGLRenderer( parameters ) {
 
 		}
 
+		if (dstTexture.generateMipmaps) _gl.generateMipmap( _gl.TEXTURE_2D );
+
 		state.unbindTexture();
 
 	};