diff options
Diffstat (limited to 'progs/xdemos/omlsync.c')
-rw-r--r-- | progs/xdemos/omlsync.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/progs/xdemos/omlsync.c b/progs/xdemos/omlsync.c index f2c1d13f811..a2baf4ad720 100644 --- a/progs/xdemos/omlsync.c +++ b/progs/xdemos/omlsync.c @@ -73,10 +73,9 @@ int (*glXSwapInterval)(int interval); static int GLXExtensionSupported(Display *dpy, const char *extension) { - const char *extensionsString, *client_extensions, *pos; + const char *extensionsString, *pos; extensionsString = glXQueryExtensionsString(dpy, DefaultScreen(dpy)); - client_extensions = glXGetClientString(dpy, GLX_EXTENSIONS); pos = strstr(extensionsString, extension); @@ -84,12 +83,6 @@ static int GLXExtensionSupported(Display *dpy, const char *extension) (pos[strlen(extension)] == ' ' || pos[strlen(extension)] == '\0')) return 1; - pos = strstr(client_extensions, extension); - - if (pos != NULL && (pos == extensionsString || pos[-1] == ' ') && - (pos[strlen(extension)] == ' ' || pos[strlen(extension)] == '\0')) - return 1; - return 0; } |