diff --git a/include/GLFW/glfw3.h b/include/GLFW/glfw3.h index b01f6f3c..57c56b8b 100644 --- a/include/GLFW/glfw3.h +++ b/include/GLFW/glfw3.h @@ -284,21 +284,21 @@ extern "C" { * API is changed in non-compatible ways. * @ingroup init */ -#define GLFW_VERSION_MAJOR 3 +#define GLFW_VERSION_MAJOR 1 /*! @brief The minor version number of the GLFW header. * * The minor version number of the GLFW header. This is incremented when * features are added to the API but it remains backward-compatible. * @ingroup init */ -#define GLFW_VERSION_MINOR 4 +#define GLFW_VERSION_MINOR 0 /*! @brief The revision number of the GLFW header. * * The revision number of the GLFW header. This is incremented when a bug fix * release is made that does not contain any API changes. * @ingroup init */ -#define GLFW_VERSION_REVISION 0 +#define GLFW_VERSION_REVISION 5 /*! @} */ /*! @brief One. diff --git a/src/platform.c b/src/platform.c index f7ae87c2..60a53edd 100644 --- a/src/platform.c +++ b/src/platform.c @@ -154,41 +154,27 @@ GLFWAPI const char* glfwGetVersionString(void) GLFW_VERSION_MINOR, GLFW_VERSION_REVISION) #if defined(_GLFW_WIN32) - " Win32 WGL" + " Win32" #endif + #if defined(_GLFW_COCOA) - " Cocoa NSGL" + " Cocoa" #endif + #if defined(_GLFW_WAYLAND) " Wayland" #endif + #if defined(_GLFW_X11) - " X11 GLX" + " X11" #endif - " Null" - " EGL" - " OSMesa" + #if defined(__MINGW64_VERSION_MAJOR) " MinGW-w64" #elif defined(__MINGW32__) " MinGW" #elif defined(_MSC_VER) " VisualC" -#endif -#if defined(_GLFW_USE_HYBRID_HPG) || defined(_GLFW_USE_OPTIMUS_HPG) - " hybrid-GPU" -#endif -#if defined(_POSIX_MONOTONIC_CLOCK) - " monotonic" -#endif -#if defined(_GLFW_BUILD_DLL) -#if defined(_WIN32) - " DLL" -#elif defined(__APPLE__) - " dynamic" -#else - " shared" -#endif #endif ; }