Add assertions for context function invariants

Port from upstream glfw
See 93d70cb6a8c9571b5b493936596633a1a8538cea
This commit is contained in:
Kovid Goyal 2025-08-16 07:27:20 +05:30
parent a28e9a0146
commit 8e39041619
No known key found for this signature in database
GPG key ID: 06BC317B515ACE7C

1
glfw/egl_context.c vendored
View file

@ -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)
{