diff options
author | Simon Ser <contact@emersion.fr> | 2022-05-25 17:43:51 +0200 |
---|---|---|
committer | Simon Zeni <simon@bl4ckb0ne.ca> | 2022-05-25 18:17:41 +0000 |
commit | 4b3e08c8acf0b83654c203bf7e055fc995f2540f (patch) | |
tree | dfb6a647d50bc1606d113bc42f60c4c47a728e2e /include/render | |
parent | f954092f22256c807c70f2a7de376f29e864d342 (diff) |
render/egl: make wlr_egl_{make,unset,is}_current private
These are trivial wrappers around eglMakeCurrent and
eglGetCurrentContext. Compositors which need to call these
functions will also call other EGL or GL functions anyways. Let's
reduce our API surface a bit by making them private.
Diffstat (limited to 'include/render')
-rw-r--r-- | include/render/egl.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/render/egl.h b/include/render/egl.h index 547254c8..f77e1147 100644 --- a/include/render/egl.h +++ b/include/render/egl.h @@ -101,4 +101,16 @@ void wlr_egl_save_context(struct wlr_egl_context *context); */ bool wlr_egl_restore_context(struct wlr_egl_context *context); +/** + * Make the EGL context current. + * + * Callers are expected to clear the current context when they are done by + * calling wlr_egl_unset_current(). + */ +bool wlr_egl_make_current(struct wlr_egl *egl); + +bool wlr_egl_unset_current(struct wlr_egl *egl); + +bool wlr_egl_is_current(struct wlr_egl *egl); + #endif |