From 23f6176fbf106468f44fe96d546698bae0a46495 Mon Sep 17 00:00:00 2001
From: Camilla Berglund <elmindreda@elmindreda.org>
Date: Tue, 12 Mar 2013 19:53:29 +0100
Subject: [PATCH] Expanded docs on init and terminate.

---
 include/GL/glfw3.h | 16 ++++++++++++----
 1 file changed, 12 insertions(+), 4 deletions(-)

diff --git a/include/GL/glfw3.h b/include/GL/glfw3.h
index d51dd5fe..f3117a6c 100644
--- a/include/GL/glfw3.h
+++ b/include/GL/glfw3.h
@@ -727,6 +727,9 @@ typedef struct
  *  a program terminates GLFW should be terminated in order to free allocated
  *  resources, memory, etc.
  *
+ *  If this function fails, it calls @ref glfwTerminate before returning.  If it
+ *  succeeds, you should call @ref glfwTerminate before the program exits.
+ *
  *  @return `GL_TRUE` if successful, or `GL_FALSE` if an error occurred.
  *  @ingroup init
  *
@@ -752,14 +755,19 @@ GLFWAPI int glfwInit(void);
 /*! @brief Terminates the GLFW library.
  *  @ingroup init
  *
+ *  This function destroys all remaining windows, frees any allocated resources
+ *  and sets the library to an uninitialized state.  Once this is called, you
+ *  must again call @ref glfwInit successfully before you will be able to use
+ *  most GLFW functions.
+ *
+ *  If GLFW has been successfully initialized, this function should be called
+ *  before the program exits.  If @ref glfwInit fails, there is no need to call
+ *  this function, as it is called before @ref glfwInit returns failure.
+ *
  *  @remarks This function may be called before @ref glfwInit.
  *
  *  @note This function may only be called from the main thread.
  *
- *  @note This function closes all GLFW windows.
- *
- *  @note This function should be called before the program exits.
- *
  *  @warning No window's context may be current on another thread when this
  *  function is called.
  *