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

wgpu crash if scissor rectangle is outside of the window #2038

Closed
s-nie opened this issue Sep 12, 2022 · 0 comments · Fixed by #2039
Closed

wgpu crash if scissor rectangle is outside of the window #2038

s-nie opened this issue Sep 12, 2022 · 0 comments · Fixed by #2039
Labels
bug Something is broken

Comments

@s-nie
Copy link
Contributor

s-nie commented Sep 12, 2022

It looks like 09d636b introduced the possibility of having a scissor rectangle that is outside of the screen. This leads to a wgpu panic:

ERROR wgpu::backend::direct] Handling wgpu errors as fatal by default
thread 'main' panicked at 'wgpu error: Validation Error

Caused by:
    In a RenderPass
      note: encoder = `encoder`
    In a set_scissor_rect command
    Scissor Rect { x: 1280, y: 720, w: 1, h: 1 } is not contained in the render target Extent3d { width: 1280, height: 720, depth_or_array_layers: 1 }

One way to produce this was to increase the set_pixels_per_point and then on the same frame placing an image in the bottom-right corner. But it also seems to happen in other scenarios.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something is broken
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant