From 54e1fefd2e29cb00dff7c02801913d793ceab7d6 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Thu, 22 Feb 2024 19:48:06 +0100 Subject: [PATCH] render/egl: drop wlr_egl_is_current() This is unused. --- include/render/egl.h | 2 -- render/egl.c | 4 ---- 2 files changed, 6 deletions(-) diff --git a/include/render/egl.h b/include/render/egl.h index 89b61f0f..0765cce7 100644 --- a/include/render/egl.h +++ b/include/render/egl.h @@ -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_is_current(struct wlr_egl *egl); - #endif diff --git a/render/egl.c b/render/egl.c index d2e0af9a..19868ca8 100644 --- a/render/egl.c +++ b/render/egl.c @@ -674,10 +674,6 @@ bool wlr_egl_unset_current(struct wlr_egl *egl) { 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) { // If the saved context is a null-context, we must use the current // display instead of the saved display because eglMakeCurrent() can't