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* _glfwPlatformGetVersionString(void)
{ {
const char* version = _GLFW_VERSION_FULL const char* version = _GLFW_VERSION_FULL
#if defined(_GLFW_X11_GLX)
" GLX"
#elif defined(_GLFW_X11_EGL)
" EGL"
#endif
#if defined(_GLFW_HAS_XRANDR) #if defined(_GLFW_HAS_XRANDR)
" XRandR" " XRandR"
#endif #endif
@ -708,8 +713,12 @@ const char* _glfwPlatformGetVersionString(void)
" glXGetProcAddressARB" " glXGetProcAddressARB"
#elif defined(_GLFW_HAS_GLXGETPROCADDRESSEXT) #elif defined(_GLFW_HAS_GLXGETPROCADDRESSEXT)
" glXGetProcAddressEXT" " glXGetProcAddressEXT"
#elif defined(_GLFW_HAS_EGLGETPROCADDRESS)
" eglGetProcAddress"
#elif defined(_GLFW_DLOPEN_LIBGL) #elif defined(_GLFW_DLOPEN_LIBGL)
" dlsym(libGL)" " dlsym(libGL)"
#elif defined(_GLFW_DLOPEN_LIBEGL)
" dlsym(libEGL)"
#else #else
" no-extension-support" " no-extension-support"
#endif #endif