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 updating of WGPU texture size #100

Merged
merged 2 commits into from
Jun 13, 2023
Merged

Fix updating of WGPU texture size #100

merged 2 commits into from
Jun 13, 2023

Conversation

dcvz
Copy link
Contributor

@dcvz dcvz commented Jun 12, 2023

Checklist

  • cargo clippy reports no issues
  • cargo doc reports no issues
  • cargo deny issues have been fixed or added to deny.toml
  • human-readable change descriptions added to the changelog under the "Unreleased" heading.
    • If the change does not affect the user (or is a process change), preface the change with "Internal:"
    • Add credit to yourself for each change: Added new functionality @githubname.

Description

Fixes the resizing logic. Makes sure we create a texture that is of the proper size. The size the callback gets vs what window.inner_size() does not match up. ImGui however, uses the correct value and it causes a crash where a scissor bigger than the current texture is attempted.

Related Issues

Perhaps #99 and #77

Copy link
Owner

@Yatekii Yatekii left a comment

Choose a reason for hiding this comment

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

Thanks for fixing this!

@Yatekii Yatekii merged commit f8fea90 into Yatekii:master Jun 13, 2023
12 checks passed
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.

None yet

2 participants