From b909c25337c400276e008088a75fad866f7bf93a Mon Sep 17 00:00:00 2001 From: jkds Date: Wed, 6 Aug 2025 09:50:42 +0200 Subject: [PATCH] egl: add missing eglGetCurrentContext(), can be used to check whether the current EGL context is valid --- src/native/egl.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/native/egl.rs b/src/native/egl.rs index c9e35624e..5dc24e27f 100644 --- a/src/native/egl.rs +++ b/src/native/egl.rs @@ -101,6 +101,7 @@ crate::declare_module! { EGLint, *mut EGLint, ) -> EGLBoolean, + pub fn eglGetCurrentContext() -> EGLContext, pub fn eglGetCurrentDisplay() -> EGLDisplay, pub fn eglGetCurrentSurface(EGLint) -> EGLSurface, pub fn eglGetDisplay(EGLNativeDisplayType) -> EGLDisplay,