blob: d51453687d6c8a1c13a3e404bdc4c56532c2bb09 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#include <X11/X.h>
#include <X11/Xlib.h>
#include <X11/Xutil.h>
#include <GL/glx.h>
#include <stdio.h>
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;
}
|