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

Fix incorrect mapping of initial action as clear region continue to clear. #87022

Merged
merged 1 commit into from
Jan 10, 2024

Conversation

DarioSamo
Copy link
Contributor

Fixes the regression caused by #84976 on canvas renderer where the 2D lights and shadows demo showed broken behavior.

INITIAL_ACTION_CLEAR_REGION_CONTINUE implied a clear on the region defined by the draw list. This was incorrectly assigned to "LOAD" in the new initial action redesign, leading to the framebuffer not being cleared as intended.

Before (broken):
image

After:
image

No existing code uses INITIAL_ACTION_CLEAR_REGION_CONTINUE anymore, so if there's any other potential places that should be reviewed, it's whatever used the action before the PR was merged, which was limited to a very small amount of effects (notably, omni-lights in 3D used them but they're not broken, so their action mappings seem correct).

Copy link
Member

@clayjohn clayjohn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great!

@DarioSamo DarioSamo requested a review from a team as a code owner January 9, 2024 23:43
@DarioSamo
Copy link
Contributor Author

Small doc update for CI.

@akien-mga akien-mga merged commit 74f3d16 into godotengine:master Jan 10, 2024
15 checks passed
@akien-mga
Copy link
Member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants