mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-03 09:01:40 -05:00
render/gles2: document EGL context gotchas
This commit is contained in:
parent
c31ca04264
commit
1208ba6c28
1 changed files with 9 additions and 0 deletions
|
|
@ -14,6 +14,15 @@
|
||||||
|
|
||||||
struct wlr_egl;
|
struct wlr_egl;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* OpenGL ES 2 renderer.
|
||||||
|
*
|
||||||
|
* Care must be taken to avoid stepping each other's toes with EGL contexts:
|
||||||
|
* the current EGL is global state. The GLES2 renderer operations will save
|
||||||
|
* and restore any previous EGL context when called. A render pass is seen as
|
||||||
|
* a single operation.
|
||||||
|
*/
|
||||||
|
|
||||||
struct wlr_renderer *wlr_gles2_renderer_create_with_drm_fd(int drm_fd);
|
struct wlr_renderer *wlr_gles2_renderer_create_with_drm_fd(int drm_fd);
|
||||||
struct wlr_renderer *wlr_gles2_renderer_create(struct wlr_egl *egl);
|
struct wlr_renderer *wlr_gles2_renderer_create(struct wlr_egl *egl);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue