cocos-engine icon indicating copy to clipboard operation
cocos-engine copied to clipboard

[3.8.2] Modify active of different canvas when previewing editor To switch rendering content, render residue appears

Open zhefengzhang opened this issue 1 year ago • 3 comments

Cocos Creator version

3.8.2

System information

Windows10

Issue description

Modify active of different canvas when previewing editor To switch rendering content, render residue appears 编辑器预览时修改不同 canvas 的 active 用于切换渲染内容,会出现渲染残留

企业微信截图_17071144302185

Relevant error log output

Steps to reproduce

https://github.com/cocos/cocos-engine/assets/35944775/f0e04296-f054-4e53-9866-26c8ee3b2730

Minimal reproduction project

20240205001.zip

zhefengzhang avatar Feb 05 '24 06:02 zhefengzhang

image for the camera which is not rendering, the camera.window.swapchain is null.

star-e avatar Mar 04 '24 03:03 star-e

image The cameras have different _window: RenderWindow.

star-e avatar Mar 04 '24 03:03 star-e

image It seems Editor will call changeTargetWindow on the first active camera, with the swapchain 65538 image For the 2nd enabled camera, the swapchain will remain 'null'.

star-e avatar Mar 04 '24 04:03 star-e

Fixed in 3.8.4

star-e avatar Aug 14 '24 04:08 star-e