-
Notifications
You must be signed in to change notification settings - Fork 200
Fix: Properly handle scene resets to ensure correct alpha rendering #859
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
Merged
grebmeg
merged 4 commits into
linebender:main
from
grebmeg:gemberg-fix-alphas-rendering
Mar 18, 2025
Merged
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
0f373b9
Fix: Properly handle scene resets to ensure correct alpha rendering
grebmeg 37f2bd7
Fix: Streamline buffer/texture creation, ensuring size checks & resou…
grebmeg 79cb7a6
Refactor: Move `parsed_svg` out RedrawRequested event
grebmeg c9235f5
Feat: Add zoom functionality to SVG example
grebmeg File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some of this logic is quite hard to follow; there's a lot more unwrap/expect than I'd normally expect (ha). That is, I feel like the three stages of "check if anything needs to be recreated, then recreate them, then access them", could be combined better.
That being said, I don't think that refactoring that now is helpful, and so I'm happy for this to land.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have a similar feeling but haven’t yet come up with a better approach to managing resource preparation from
NonetoSomeand subsequently validating whether recreation is necessary. One idea is to precreate all buffers/textures innew, eliminating the need to check forNoneand only requiring checks for resizing buffers/textures. I think I just need to spend more time refining this and will revisit it a bit later.