diff options
author | Simon Ser <contact@emersion.fr> | 2023-11-30 17:46:50 +0100 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2023-11-30 17:46:50 +0100 |
commit | 1208ba6c285f19558b1eaf01167ec6b0ceb423a5 (patch) | |
tree | 3682125cf66db1aab30a9fe5ef5e937c4d269eb1 /include/wlr | |
parent | c31ca04264a657cbbe90f0017189e35f16dd19e8 (diff) |
render/gles2: document EGL context gotchas
Diffstat (limited to 'include/wlr')
-rw-r--r-- | include/wlr/render/gles2.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/wlr/render/gles2.h b/include/wlr/render/gles2.h index daf6aab3..66401548 100644 --- a/include/wlr/render/gles2.h +++ b/include/wlr/render/gles2.h @@ -14,6 +14,15 @@ 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(struct wlr_egl *egl); |