From 1a0b7827d45238e23df05f13dee47dda331bde05 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Camilla=20L=C3=B6wy?= Date: Fri, 29 Aug 2025 17:08:36 +0200 Subject: [PATCH] EGL: Fix error return value for glfwGetEGLSurface This is a semantic fix only. The behavior is unchanged. --- src/egl_context.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/egl_context.c b/src/egl_context.c index 517c64cb..272e7a4d 100644 --- a/src/egl_context.c +++ b/src/egl_context.c @@ -939,7 +939,7 @@ GLFWAPI EGLSurface glfwGetEGLSurface(GLFWwindow* handle) window->context.source != GLFW_NATIVE_CONTEXT_API) { _glfwInputError(GLFW_NO_WINDOW_CONTEXT, NULL); - return EGL_NO_CONTEXT; + return EGL_NO_SURFACE; } }