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

Batching - BackBuffer copy fix #43818

Merged
merged 1 commit into from
Nov 25, 2020
Merged

Conversation

lawnjelly
Copy link
Member

For fixing a previous issue #38004, state.canvas_texscreen_used was reset to false at the start of each render_joined_item in PR #38200.

This was causing a later shader that used SCREEN_TEXTURE to force recapturing the back buffer immediately prior to use, which we don't want, in issue #43644.

This PR preserves the state across joined items, and also prevents joining of items that copy the back buffer as this may be problematic.

It turns out that the original issue that needed the line now appears to be fixed (by other improvements since), and the later issue is also fixed by removing it.

Fixes #43644

For fixing a previous issue state.canvas_texscreen_used was reset to false at the start of each render_joined_item. This was causing a later shader that used SCREEN_TEXTURE to force recapturing the back buffer immediately prior to use, which we don't want.

This PR preserves the state across joined items, and also prevents joining of items that copy the back buffer as this may be problematic.

It turns out that the original issue that needed the line is now fixed, and the later issue is also fixed by removing it.
@Calinou Calinou added this to the 3.2 milestone Nov 24, 2020
@akien-mga akien-mga merged commit 83f7c2d into godotengine:3.2 Nov 25, 2020
@akien-mga
Copy link
Member

Thanks!

@lawnjelly lawnjelly deleted the back_buffer_fix branch November 25, 2020 09:32
@akien-mga akien-mga modified the milestones: 3.2, 3.3 Apr 20, 2021
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.

None yet

4 participants