From 26528819a717a254d0b54c5f44dee21f3dd142b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B8=D1=85=D0=B0=D0=B8=D0=BB=20=D0=9A=D0=B0=D0=BF?= =?UTF-8?q?=D0=B5=D0=BB=D1=8C=D0=BA=D0=BE?= Date: Thu, 29 Oct 2026 23:05:04 +0300 Subject: [PATCH] some --- components/egl/egl.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/components/egl/egl.h b/components/egl/egl.h index 6b151b6..d9817fe 100644 --- a/components/egl/egl.h +++ b/components/egl/egl.h @@ -15,6 +15,7 @@ typedef struct EGLState { } EGLState; bool eglInit(EGLState *st); +bool eglMakeCurrentContext(EGLState *st); bool eglResetSurface(EGLState *st); // Source @@ -51,6 +52,14 @@ bool eglInit(EGLState *st) { return true; } +bool eglMakeCurrentContext(EGLState *st) { + if (eglMakeCurrent(st->display, st->surface, st->surface, st->ctx) == EGL_FALSE) { + return false; + } + + return true; +} + bool eglResetSurface(EGLState *st) { // Destroy previous surface if (st->surface != EGL_NO_SURFACE) {