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

Properly drop surfaces #3647

Merged
merged 1 commit into from
Apr 5, 2023
Merged

Conversation

BenjaminSchaaf
Copy link
Contributor

@BenjaminSchaaf BenjaminSchaaf commented Apr 4, 2023

Checklist

  • Run cargo clippy.
  • Run RUSTFLAGS=--cfg=web_sys_unstable_apis cargo clippy --target wasm32-unknown-unknown if applicable.
  • Add change to CHANGELOG.md. See simple instructions inside file.

Connections
Fixes #3646

Description
Surfaces weren't being dropped until exit due to the code commented out in Context::surface_drop. This hid a bug where surfaces dropped before exit weren't being unconfigured.

Testing
I ran some of the examples as well as the example from the issue and they worked as expected.

Surfaces weren't being dropped until exit due to the code commented out
in Context::surface_drop. This hid a bug where surfaces dropped before
exit weren't being unconfigured.

Fixes gfx-rs#3646
Copy link
Member

@cwfitzgerald cwfitzgerald left a comment

Choose a reason for hiding this comment

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

Seems perfectly reasonable

@cwfitzgerald cwfitzgerald merged commit fdbbd02 into gfx-rs:trunk Apr 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Surfaces leak, never being destroyed
2 participants