From 8fe816d24848c911eb998614e964443846b6f466 Mon Sep 17 00:00:00 2001 From: Camilla Berglund Date: Mon, 18 Mar 2013 19:21:17 +0100 Subject: [PATCH] Removed GLFW_NO_ERROR. As glfwGetError was removed (due to a race between glfwInit error reporting and manual TLS setup on OS X), this token has no purpose. --- include/GL/glfw3.h | 3 --- src/init.c | 2 -- 2 files changed, 5 deletions(-) diff --git a/include/GL/glfw3.h b/include/GL/glfw3.h index 829df946..c1653e48 100644 --- a/include/GL/glfw3.h +++ b/include/GL/glfw3.h @@ -446,9 +446,6 @@ extern "C" { /*! @defgroup errors Error codes * @ingroup error * @{ */ -/*! @brief No error has occurred. - */ -#define GLFW_NO_ERROR 0 /*! @brief GLFW has not been initialized. */ #define GLFW_NOT_INITIALIZED 0x00070001 diff --git a/src/init.c b/src/init.c index 3b5f43df..b8107704 100644 --- a/src/init.c +++ b/src/init.c @@ -56,8 +56,6 @@ static const char* getErrorString(int error) { switch (error) { - case GLFW_NO_ERROR: - return "No error"; case GLFW_NOT_INITIALIZED: return "The GLFW library is not initialized"; case GLFW_NO_CURRENT_CONTEXT: