wlroots-hyprland/render/gles2
Simon Ser afdf4dc890 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
2021-01-16 09:06:17 +01:00
..
meson.build render: extract gles2 build files to subdir 2021-01-15 22:13:04 +01:00
pixel_format.c render/gles2: remove duplicated format list 2020-03-09 15:26:28 +01:00
renderer.c render/gles2: make EGL context current in bind_buffer 2021-01-16 09:06:17 +01:00
shaders.c render/gles2: use .x/.y instead of .s/.t 2020-06-17 09:10:54 -06:00
texture.c render/gles2: restore EGL context after texture operations 2021-01-15 10:19:31 +01:00