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

Don't change the internal canvas size #2778

Merged
merged 1 commit into from
May 28, 2023

Conversation

daxpedda
Copy link
Member

@daxpedda daxpedda commented Apr 26, 2023

See #2733, gfx-rs/wgpu#3620 and gfx-rs/wgpu#3690 for more information.

This is a follow-up to gfx-rs/wgpu#3690. Now renderer are responsible for changing the internal canvas size. Winit will still continue to adjust the visual size of the canvas.

Both wgpu and softbuffer handle this correctly. Happy to check and make PR's to other crates that come to mind.

Fixes #2733.

@kchibisov
Copy link
Member

Would suggest to check glutin as well.

@daxpedda
Copy link
Member Author

I don't think glutin supports Wasm. Couldn't find any reference to anything in the code.
rust-windowing/glutin#1167

@kchibisov
Copy link
Member

Ah, sorry, I for whatever reason thought that it was about macOS.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

Web: transferControlToOffscreen() breaks calls to canvas
3 participants