mirror of
https://github.com/glfw/glfw.git
synced 2025-08-30 18:41:48 +00:00
EGL: Fix error return value for glfwGetEGLSurface
This is a semantic fix only. The behavior is unchanged.
This commit is contained in:
parent
4c64184455
commit
1a0b7827d4
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user