Skip to content

Recreate swap chain in example - #20

Open
talex5 wants to merge 2 commits into
Octachron:mainfrom
talex5:fix-out-of-date
Open

Recreate swap chain in example#20
talex5 wants to merge 2 commits into
Octachron:mainfrom
talex5:fix-out-of-date

Conversation

@talex5

@talex5 talex5 commented Aug 14, 2025

Copy link
Copy Markdown
Contributor

After upgrading to Debian 13, the example was failing with:

Error Error_out_of_date_khr: Present to queue

It looks like sdl has become more strict about the swap chain extent matching the current window size. This commit recreates the swap chain when the size changes.

This is split into two commits to make the diff easier to read.

talex5 added 2 commits August 14, 2025 15:47
This is to improve the diff in the next commit:

- Remove the unused `!` operator to avoid conflicts with the built-in one.
- Ensure debug output is flushed.
- Merge `debug_draw` and `draw` to avoid having to keep them in sync.
After upgrading to Debian 13, the example was failing with:

    Error Error_out_of_date_khr: Present to queue

It looks like sdl has become more strict about the swap chain extent
matching the current window size. This commit recreates the swap chain
when the size changes.
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