8000 Return error on out of date surface by cetra3 · Pull Request #266 · kvark/blade · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Return error on out of date surface #266

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

cetra3
Copy link
@cetra3 cetra3 commented Jul 11, 2025

I've ran into an issue using Zed in a Tiling WM that it gets stuck in a loop and never resolves itself. This is because there is something invalidating the surface, but not sure what it is exactly. The fix is to, when this happens, reinitialise the surface.

This PR makes the acquire_frame return a Result so the callee can handle this case correctly: VK_ERROR_OUT_OF_DATE_KHR: The swap chain has become incompatible with the surface and can no longer be used for rendering. Usually happens after a window resize, but there seems to be other reasons for it.

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.

1 participant
0