Skip to content

Commit 71d0a45

Browse files
authored
Examples: Fix argument passed to copyTextureToTexture
The third argument passed to `copyTextureToTexture` should be a `Box2` or `null`. I believe this is an oversight in mrdoob#28315.
1 parent d6c3bcc commit 71d0a45

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/webgpu_materials_texture_partialupdate.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@
110110

111111
// perform copy from src to dest texture to a random position
112112

113-
renderer.copyTextureToTexture( dataTexture, diffuseMap, new THREE.Vector2(), position );
113+
renderer.copyTextureToTexture( dataTexture, diffuseMap, null, position );
114114

115115
}
116116

0 commit comments

Comments
 (0)