From fb0c8d4662e47f6ea8b6acef615f0ef04646dfc3 Mon Sep 17 00:00:00 2001 From: "A. Tombs" Date: Fri, 22 May 2020 14:37:58 +0100 Subject: [PATCH] Add statement to docs for glfwTerminate It is safe to call glfwTerminate both before initialization and after termination. Closes #1698. (cherry picked from commit 7486e12f88b2a9039b805356bcbe259c0fca5c2d) --- include/GLFW/glfw3.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/GLFW/glfw3.h b/include/GLFW/glfw3.h index bf854b07..85f2cfda 100644 --- a/include/GLFW/glfw3.h +++ b/include/GLFW/glfw3.h @@ -1795,6 +1795,8 @@ GLFWAPI int glfwInit(void); * call this function, as it is called by @ref glfwInit before it returns * failure. * + * This function has no effect if GLFW is not initialized. + * * @errors Possible errors include @ref GLFW_PLATFORM_ERROR. * * @remark This function may be called before @ref glfwInit.