Skip to content

Commit b4d4566

Browse files
committed
WebGPUTextures: Clean up.
1 parent ade8cd9 commit b4d4566

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/jsm/renderers/webgpu/WebGPUTextures.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ class WebGPUTextures {
337337

338338
} else {
339339

340-
// convert HTML iamges and canvas elements to ImageBitmap before copy
340+
// convert HTML images and canvas elements to ImageBitmap
341341

342342
if ( ( typeof HTMLImageElement !== 'undefined' && image instanceof HTMLImageElement ) ||
343343
( typeof HTMLCanvasElement !== 'undefined' && image instanceof HTMLCanvasElement ) ) {
@@ -357,7 +357,7 @@ class WebGPUTextures {
357357

358358
if ( image !== undefined ) {
359359

360-
// assuming ImageBitmap. Directly start copy operation of the contents of ImageBitmap into the destination texture
360+
// assume ImageBitmap
361361

362362
this._copyImageBitmapToTexture( image, textureGPU, needsMipmaps, textureGPUDescriptor );
363363

0 commit comments

Comments
 (0)