Skip to content
This repository has been archived by the owner on Nov 1, 2021. It is now read-only.

render/egl: unset current context after swapping buffers #2213

Merged
merged 1 commit into from
May 20, 2020

Conversation

emersion
Copy link
Member

@emersion emersion commented May 20, 2020

After swapping buffers, it doesn't make sense to perform more rendering
operations. Unset the context to reflect this.

This commit makes it so the context is always only current between
wlr_egl_make_current and wlr_egl_swap_buffers.

This is an alternative to 1.

Closes: #2209


This is ready for review, but let's wait for user feedback before merging it, in case I missed something again.

After swapping buffers, it doesn't make sense to perform more rendering
operations. Unset the context to reflect this.

This commit makes it so the context is always only current between
wlr_egl_make_current and wlr_egl_swap_buffers.

This is an alternative to [1].

[1]: swaywm#2212
@emersion
Copy link
Member Author

Confirmed it fixes the issue: #2209 (comment)

@ddevault ddevault merged commit af2f69e into swaywm:master May 20, 2020
@ddevault
Copy link
Contributor

Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Segfault with latest egl context change
2 participants