mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-09 13:29:46 -05:00
render/egl: make wlr_egl context private, replace them with public wlr_egl_context functions
This commit is contained in:
parent
6eff6c365b
commit
f70f37a2c2
3 changed files with 42 additions and 4 deletions
|
|
@ -41,4 +41,19 @@ bool wlr_egl_destroy_image(struct wlr_egl *egl, EGLImageKHR image);
|
|||
|
||||
int wlr_egl_dup_drm_fd(struct wlr_egl *egl);
|
||||
|
||||
/**
|
||||
* Makes the provided 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);
|
||||
|
||||
/**
|
||||
* Clears the current EGLContext
|
||||
*/
|
||||
bool wlr_egl_unset_current(struct wlr_egl *egl);
|
||||
|
||||
bool wlr_egl_is_current(struct wlr_egl *egl);
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue