2
0
Эх сурвалжийг харах

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

sunag 1 жил өмнө
parent
commit
f1958be9c8

+ 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 );
 
 			}