mirror of
https://github.com/glfw/glfw.git
synced 2026-01-11 15:23:17 +01:00
EGL: Fix error return value for glfwGetEGLSurface
This is a semantic fix only. The behavior is unchanged.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user