diff options
author | Simon Ser <contact@emersion.fr> | 2021-01-14 12:45:07 +0100 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2021-01-16 09:06:17 +0100 |
commit | afdf4dc890d512b4d56796451af5a76a18376c0e (patch) | |
tree | f84b567ad6f70f98eca9834a9123f9ea61555ffd /tinywl/tinywl.c | |
parent | 08a4c62aac9d9771197018a155a9d80d6f93d764 (diff) |
render/gles2: make EGL context current in bind_buffer
Instead of requiring callers to manually make the EGL context current
before binding a buffer and unsetting it after unbinding a buffer, do
it inside wlr_renderer_bind_buffer.
This hides renderer-specific implementation details inside the
wlr_renderer interface. Non-GLES2 renderers may not use EGL.
This removes all EGL dependencies from the backends.
References: https://github.com/swaywm/wlroots/issues/2618
References: https://github.com/swaywm/wlroots/pull/2615#issuecomment-756687006
Diffstat (limited to 'tinywl/tinywl.c')
0 files changed, 0 insertions, 0 deletions