| 2116 | // Same as glXGetClientString() in our case |
| 2117 | |
| 2118 | const char *glXQueryServerString(Display *dpy, int screen, int name) |
| 2119 | { |
| 2120 | TRY(); |
| 2121 | |
| 2122 | if(IS_EXCLUDED(dpy)) |
| 2123 | return _glXQueryServerString(dpy, screen, name); |
| 2124 | |
| 2125 | if(name == GLX_EXTENSIONS) return getGLXExtensions(); |
| 2126 | else if(name == GLX_VERSION) return "1.4"; |
| 2127 | else if(name == GLX_VENDOR) |
| 2128 | { |
| 2129 | if(strlen(fconfig.glxvendor) > 0) return fconfig.glxvendor; |
| 2130 | else return __APPNAME; |
| 2131 | } |
| 2132 | |
| 2133 | CATCH(); |
| 2134 | return NULL; |
| 2135 | } |
| 2136 | |
| 2137 | |
| 2138 | // Hand off to the 3D X server without modification. |
no test coverage detected