Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
zhefengzhang opened this issue Feb 5, 2024 · 3 comments
Assignees
Labels
Bug Needs Triage Needs to be assigned by the team
Milestone

Comments

@zhefengzhang
Copy link
Contributor

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

20240205_144641.mp4

Minimal reproduction project

20240205001.zip

@zhefengzhang zhefengzhang added Bug Needs Triage Needs to be assigned by the team labels Feb 5, 2024
@knoxHuang knoxHuang assigned star-e and unassigned knoxHuang Feb 19, 2024
@star-e
Copy link
Contributor

star-e commented Mar 4, 2024

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

@star-e
Copy link
Contributor

star-e commented Mar 4, 2024

image
The cameras have different _window: RenderWindow.

@star-e
Copy link
Contributor

star-e commented Mar 4, 2024

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 star-e added this to the 3.8.4 milestone Apr 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Needs Triage Needs to be assigned by the team
Projects
None yet
Development

No branches or pull requests

3 participants