EGL: Fix error return value for glfwGetEGLSurface

This is a semantic fix only.  The behavior is unchanged.
This commit is contained in:
Camilla Löwy 2025-08-29 17:08:36 +02:00
parent 4c64184455
commit 1a0b7827d4

View File

@ -939,7 +939,7 @@ GLFWAPI EGLSurface glfwGetEGLSurface(GLFWwindow* handle)
window->context.source != GLFW_NATIVE_CONTEXT_API) window->context.source != GLFW_NATIVE_CONTEXT_API)
{ {
_glfwInputError(GLFW_NO_WINDOW_CONTEXT, NULL); _glfwInputError(GLFW_NO_WINDOW_CONTEXT, NULL);
return EGL_NO_CONTEXT; return EGL_NO_SURFACE;
} }
} }