From 085f61d95155c21f05e3a81c217f3d42103c60c2 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 At the moment it is safe to call `glfwTerminate` even if the library is not currently initialized (it returns instantly with no side effects), but this is not mentioned in the documentation. Unless you plan to change this behaviour in future (and I don't think you should), it would be great to make this a promise so that users don't need to add their own redundant conditional. --- include/GLFW/glfw3.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/GLFW/glfw3.h b/include/GLFW/glfw3.h index e077a0c43..b1bf2027f 100644 --- a/include/GLFW/glfw3.h +++ b/include/GLFW/glfw3.h @@ -1866,6 +1866,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.