mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-22 04:45:58 +01:00
render/egl: drop wlr_egl_is_current()
This is unused.
This commit is contained in:
parent
c31d307971
commit
54e1fefd2e
2 changed files with 0 additions and 6 deletions
|
@ -105,6 +105,4 @@ bool wlr_egl_make_current(struct wlr_egl *egl, struct wlr_egl_context *save_cont
|
||||||
|
|
||||||
bool wlr_egl_unset_current(struct wlr_egl *egl);
|
bool wlr_egl_unset_current(struct wlr_egl *egl);
|
||||||
|
|
||||||
bool wlr_egl_is_current(struct wlr_egl *egl);
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -674,10 +674,6 @@ bool wlr_egl_unset_current(struct wlr_egl *egl) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool wlr_egl_is_current(struct wlr_egl *egl) {
|
|
||||||
return eglGetCurrentContext() == egl->context;
|
|
||||||
}
|
|
||||||
|
|
||||||
bool wlr_egl_restore_context(struct wlr_egl_context *context) {
|
bool wlr_egl_restore_context(struct wlr_egl_context *context) {
|
||||||
// If the saved context is a null-context, we must use the current
|
// If the saved context is a null-context, we must use the current
|
||||||
// display instead of the saved display because eglMakeCurrent() can't
|
// display instead of the saved display because eglMakeCurrent() can't
|
||||||
|
|
Loading…
Reference in a new issue