From 8e3904161974c8a707ee1f0ad7ceba1afa06b1b3 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 16 Aug 2025 07:27:20 +0530 Subject: [PATCH] Add assertions for context function invariants Port from upstream glfw See 93d70cb6a8c9571b5b493936596633a1a8538cea --- glfw/egl_context.c | 1 + 1 file changed, 1 insertion(+) diff --git a/glfw/egl_context.c b/glfw/egl_context.c index 38431ae06..9008cba60 100644 --- a/glfw/egl_context.c +++ b/glfw/egl_context.c @@ -223,6 +223,7 @@ static int extensionSupportedEGL(const char* extension) static GLFWglproc getProcAddressEGL(const char* procname) { _GLFWwindow* window = _glfwPlatformGetTls(&_glfw.contextSlot); + assert(window != NULL); if (window->context.egl.client) {