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

Track down set_scissor_rect issue #70

Open
ecton opened this issue Dec 27, 2023 · 0 comments
Open

Track down set_scissor_rect issue #70

ecton opened this issue Dec 27, 2023 · 0 comments

Comments

@ecton
Copy link
Member

ecton commented Dec 27, 2023

From khonsulabs/cushy#93, on the GL backend, set_scissor_rect on the Drawing type somehow gets stuck on the final rect, preventing all widgets except the final to be clipped. I added a set_scissor_rect to the full dimensions of the view in RenderingGraphics::drop.

By set_scissor_rect's documentation, it should only impact drawing calls being performed after the call. Yet, this workaround is calling set_scissor_rect right before the RenderPass is dropped, therefore there are literally no remaining draw calls to be performed. Yet, it works around the issue.

This issue is to try to minimize an example that reproduces it. My attempts so far have been fruitless. It may require switching between multiple bind groups or push constants, as my attempts to create a simple example without those has been fruitless.

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

No branches or pull requests

1 participant