mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-14 06:59:43 -05:00
render/egl: remove wlr_egl context functions
This commit is contained in:
parent
95928cec72
commit
72073e5792
4 changed files with 15 additions and 42 deletions
12
render/egl.c
12
render/egl.c
|
|
@ -541,18 +541,6 @@ bool wlr_egl_destroy_image(struct wlr_egl *egl, EGLImage image) {
|
|||
return egl->procs.eglDestroyImageKHR(egl->ctx.display, image);
|
||||
}
|
||||
|
||||
bool wlr_egl_make_current(struct wlr_egl *egl) {
|
||||
return wlr_egl_context_set_current(&egl->ctx);
|
||||
}
|
||||
|
||||
bool wlr_egl_unset_current(struct wlr_egl *egl) {
|
||||
return wlr_egl_context_unset_current(&egl->ctx);
|
||||
}
|
||||
|
||||
bool wlr_egl_is_current(struct wlr_egl *egl) {
|
||||
return wlr_egl_context_is_current(&egl->ctx);
|
||||
}
|
||||
|
||||
bool wlr_egl_context_set_current(struct wlr_egl_context *ctx) {
|
||||
if (!eglMakeCurrent(ctx->display, EGL_NO_SURFACE, EGL_NO_SURFACE,
|
||||
ctx->context)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue