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

Adds context sharing support for the X11 & Wayland backends #1045

Closed
wants to merge 12 commits into from

Conversation

goddessfreya
Copy link
Contributor

Depends on: rust-windowing/winit#572 #1029

Now both backends support shared contexts, however the wayland backend requires that shared contexts are made with the same events loop.

Signed-off-by: Hal Gentz [email protected]

@marek-g
Copy link

marek-g commented Jul 18, 2018

Oh, I've implemented context sharing for the X11 today. I looked here after (bad luck). My change is much simpler (and it isn't API breaking) but I believe it's because I do not support Wayland.

I think it makes no sense to create pull request now, but if someone wants to look, it's here:
https://github.com/marek-g/glutin/commit/b30ba37c0e18e9f451f4f16f81c3380782c6e3e2

@goddessfreya
Copy link
Contributor Author

@marek-g From a cursory glance, your changes won't work with X11 + egl. My PR implements context sharing for X11 + Egl/Glx & Wayland in 54 line additions.

@marek-g
Copy link

marek-g commented Jul 19, 2018

@zegentzy You may be right. I've only tested it with X11/GLX. I can't wait for your changes to be merged :)

@goddessfreya goddessfreya mentioned this pull request Jul 26, 2018
20 tasks
@goddessfreya goddessfreya force-pushed the share-contexes branch 8 times, most recently from 42e03c3 to a76127b Compare July 26, 2018 10:42
@goddessfreya goddessfreya mentioned this pull request Jul 27, 2018
4 tasks
@goddessfreya goddessfreya force-pushed the share-contexes branch 2 times, most recently from 7cd8dd9 to 72af1ec Compare July 27, 2018 17:18
goddessfreya and others added 6 commits August 5, 2018 00:58
Signed-off-by: Hal Gentz <[email protected]>
Signed-off-by: Hal Gentz <[email protected]>
non-`shareable_with_windowed_contexts` fallback to being shareable if
unsupported. Updated docs.

Signed-off-by: Hal Gentz <[email protected]>
Signed-off-by: Hal Gentz <[email protected]>
@goddessfreya
Copy link
Contributor Author

Merged with #1058

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.

4 participants