-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Prevent scissor_rect region to be larger than the target texture in wgpu::Backend::flush #818
Conversation
I just tested your branch and still get a crash when resizing the integration example. :/ |
Oh sad... I cannot reproduce it on my branch :( |
I'm on Ubuntu 21.04 with GNOME & X11
|
This fixes the problem perfectly for me (except there is an unused variable warning). |
@kaimast I tried it on gnome and sadly could not repoduce it :( I noticed the following lines in your log
|
I do get that error on master as well right before it crashes. Might be an issue with the Nvidia Linux drivers; they're quite bad. I cannot reliably reproduce this. I usually have to resize the window quite a while for it to trigger the bug. So maybe this branch improves the behavior but does not fix all edge cases? |
Update wgpu/src/backend.rs Cargo fmt
This reverts commit 656dc35.
I made some changes in the branch. I think simply changing |
It seems to work 👍 I speculate that what @kaimast is experiencing might be due to an unrelated problem, maybe some synchronization problem between the size of the windows and the size of the textures? Their error message indicate a large difference between the size of the scissor rect and the size of the target texture. |
@thenlevy Awesome! Let's merge then! Thank you 🙇 |
This seems to solve #775 for me. I speculate that it might also solve #816
Fixes #738.
Fixes #748.
Fixes #775.
Fixes #816.