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

egui-wgpu: Fix crash on zero-sized scissor rects #2039

Merged
merged 1 commit into from
Sep 13, 2022
Merged

Conversation

emilk
Copy link
Owner

@emilk emilk commented Sep 12, 2022

Closes #2038

Please confirm @s-nie

Comment on lines +77 to +83
/// Just copy-paste this as your implementation:
/// ```ignore
/// #[cfg(target_arch = "wasm32")]
/// fn as_any_mut(&mut self) -> &mut dyn std::any::Any {
/// &mut *self
/// }
/// ```
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe default implementation can be provided? Or it will return not right Any?

Copy link
Contributor

@s-nie s-nie left a comment

Choose a reason for hiding this comment

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

That fixed it, thanks so much!

@emilk emilk merged commit c5495d6 into master Sep 13, 2022
@emilk emilk deleted the wgpu-scissor-fix branch September 13, 2022 07:32
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.

wgpu crash if scissor rectangle is outside of the window
3 participants