#include #include #include #include #include int main(int nargs, char **vargs) { int major, minor; Display *disp = XOpenDisplay(NULL); glXQueryVersion(disp, &major, &minor); fprintf(stderr, "%p: %d.%d\n", disp, major, minor); XCloseDisplay(disp); disp = XOpenDisplay(NULL); glXQueryVersion(disp, &major, &minor); fprintf(stderr, "%p: %d.%d\n", disp, major, minor); XCloseDisplay(disp); return 0; }