Skip to content

Commit

Permalink
WebGPUTextureUtils: Improve _copyImageToTexture() (#30260)
Browse files Browse the repository at this point in the history
  • Loading branch information
ycw authored Jan 3, 2025
1 parent 8e6507f commit c0b0059
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/renderers/webgpu/utils/WebGPUTextureUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -698,7 +698,8 @@ class WebGPUTextureUtils {

device.queue.copyExternalImageToTexture(
{
source: image
source: image,
flipY: flipY
}, {
texture: textureGPU,
mipLevel: 0,
Expand All @@ -710,12 +711,6 @@ class WebGPUTextureUtils {
}
);

if ( flipY === true ) {

this._flipY( textureGPU, textureDescriptorGPU, originDepth );

}

}

/**
Expand Down

0 comments on commit c0b0059

Please sign in to comment.