mirror of
https://github.com/glfw/glfw.git
synced 2024-11-27 04:22:00 +00:00
Added new options to version string.
This commit is contained in:
parent
546124f1fb
commit
5417130f96
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user