Added new options to version string.

This commit is contained in:
Camilla Berglund 2012-07-20 03:03:33 +02:00
parent 546124f1fb
commit 5417130f96

View File

@ -690,6 +690,11 @@ int _glfwPlatformTerminate(void)
const char* _glfwPlatformGetVersionString(void)
{
const char* version = _GLFW_VERSION_FULL
#if defined(_GLFW_X11_GLX)
" GLX"
#elif defined(_GLFW_X11_EGL)
" EGL"
#endif
#if defined(_GLFW_HAS_XRANDR)
" XRandR"
#endif
@ -708,8 +713,12 @@ const char* _glfwPlatformGetVersionString(void)
" glXGetProcAddressARB"
#elif defined(_GLFW_HAS_GLXGETPROCADDRESSEXT)
" glXGetProcAddressEXT"
#elif defined(_GLFW_HAS_EGLGETPROCADDRESS)
" eglGetProcAddress"
#elif defined(_GLFW_DLOPEN_LIBGL)
" dlsym(libGL)"
#elif defined(_GLFW_DLOPEN_LIBEGL)
" dlsym(libEGL)"
#else
" no-extension-support"
#endif