Explorar o código

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

sunag hai 1 ano
pai
achega
f1958be9c8
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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 );
 
 			}