Browse Source

WebGPURenderer: `WebGLBackend` - Add missing parameters to `copyTextureToTexture` (#28676)

sunag 1 năm trước cách đây
mục cha
commit
f1958be9c8
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      examples/jsm/renderers/webgl/utils/WebGLTextureUtils.js

+ 1 - 1
examples/jsm/renderers/webgl/utils/WebGLTextureUtils.js

@@ -666,7 +666,7 @@ class WebGLTextureUtils {
 
 			} else {
 
-				gl.texSubImage2D( gl.TEXTURE_2D, level, dstX, dstY, glFormat, glType, image );
+				gl.texSubImage2D( gl.TEXTURE_2D, level, dstX, dstY, width, height, glFormat, glType, image );
 
 			}