Skip to content

Conversation

@ids1024
Copy link
Member

@ids1024 ids1024 commented Jan 10, 2024

A new 0.3 release is useful for anything still relying on raw-window-handle 0.5. Given it isn't too hard. In particular iced-rs/iced#2190.

Is #180 also needed here? Or was that issue introduced later? Easy enough to add.

Leaving as a draft until I test on macOS (and make sure nothing has buffer age bugs now?). And we should also do a 0.4.x release with the current fixes.

We need to reset the age of the *new* front buffer to 1, not the old
one.

It turns out they're easy to mix up right when you're about to swap
them.

Cherry-picked from `master` to 0.3.
Drm-rs now no longer requires separate generated bindings for each
platform, so this fixes the build on architectures/OSes where drm didn't
have bindings.

It also now uses Rustix instead of Nix, but Nix is still used by the
Wayland and X11 backends, until the next wayland-rs and x11rb release.

This is not a breaking change since `drm` isn't exposed in the API.

Cherry-picked from `master` to 0.3.
@ids1024
Copy link
Member Author

ids1024 commented Jan 11, 2024

Okay, I think #180 isn't needed since some of the code around that is different between 0.3 and 0.4, and on 0.3 present_and_fetch isn't segfaulting like it was before that. Correct me if I'm wrong. Easy enough to change.

@ids1024 ids1024 marked this pull request as ready for review January 11, 2024 00:47
@ids1024 ids1024 mentioned this pull request Jan 11, 2024
@ids1024 ids1024 merged commit ee98504 into 0.3 Jan 11, 2024
@ids1024 ids1024 deleted the 0.3-backports branch January 11, 2024 02:09
@ids1024
Copy link
Member Author

ids1024 commented Jan 11, 2024

Tagged and published.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants