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

render/gles2: remove gles2_procs global #2351

Merged
merged 4 commits into from
Jul 28, 2020

Conversation

emersion
Copy link
Member

@emersion emersion commented Jul 28, 2020

See individual commits.


Breaking change: the wlr_gles2_texture_from_* family of functions are no longer public API.

These functions are unused by compositors (see e.g. [1]) and prevent
wlr_gles2_texture from accessing wlr_gles2_renderer state. This is an
issue for proper teardown [2] and for accessing GLES2 extensions.

[1]: swaywm#1962 (comment)
[2]: swaywm#1962
Move the global into wlr_gles2_renderer. This removes global state and
allows us to have multiple renderers with different GL loaders.
@emersion emersion requested a review from ddevault July 28, 2020 12:04
@emersion emersion added the breaking Breaking change in public API label Jul 28, 2020
@ddevault ddevault merged commit 1dbcfda into swaywm:master Jul 28, 2020
@ddevault
Copy link
Contributor

Thanks!

@emersion emersion mentioned this pull request Nov 4, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
breaking Breaking change in public API
Development

Successfully merging this pull request may close these issues.

None yet

2 participants