aboutsummaryrefslogtreecommitdiffstats
path: root/src/test-native/displayMultiple01.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/test-native/displayMultiple01.c')
-rw-r--r--src/test-native/displayMultiple01.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/test-native/displayMultiple01.c b/src/test-native/displayMultiple01.c
new file mode 100644
index 000000000..d51453687
--- /dev/null
+++ b/src/test-native/displayMultiple01.c
@@ -0,0 +1,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;
+}