diff --git a/cocos/gfx/webgl/webgl-commands.ts b/cocos/gfx/webgl/webgl-commands.ts index e7cd68f38b4..e812a3d15ed 100644 --- a/cocos/gfx/webgl/webgl-commands.ts +++ b/cocos/gfx/webgl/webgl-commands.ts @@ -2724,8 +2724,8 @@ export function WebGLCmdFuncCopyBuffersToTexture ( ); } else { const isFullCopy = ( - gpuTexture.width$ === destWidth && gpuTexture.height$ === destHeight && - offset.x === 0 && offset.y === 0 + gpuTexture.width$ === destWidth && gpuTexture.height$ === destHeight + && offset.x === 0 && offset.y === 0 ); if (!isFullCopy && gpuTexture.glInternalFmt$ !== (WebGLEXT.COMPRESSED_RGB_ETC1_WEBGL as number) && !device.extensions.noCompressedTexSubImage2D$) { gl.compressedTexSubImage2D( diff --git a/cocos/gfx/webgl2/webgl2-commands.ts b/cocos/gfx/webgl2/webgl2-commands.ts index 514f73bb6c6..afc1f305e7f 100644 --- a/cocos/gfx/webgl2/webgl2-commands.ts +++ b/cocos/gfx/webgl2/webgl2-commands.ts @@ -2972,8 +2972,8 @@ export function WebGL2CmdFuncCopyBuffersToTexture ( ); } else { const isFullCopy = ( - gpuTexture.width$ === destWidth && gpuTexture.height$ === destHeight && - offset.x === 0 && offset.y === 0 + gpuTexture.width$ === destWidth && gpuTexture.height$ === destHeight + && offset.x === 0 && offset.y === 0 ); if (!isFullCopy && gpuTexture.glInternalFmt$ !== WebGL2EXT.COMPRESSED_RGB_ETC1_WEBGL as number) { gl.compressedTexSubImage3D(