aboutsummaryrefslogtreecommitdiffstats
path: root/src/test-native/displayMultiple01.c
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2012-03-17 21:18:18 +0100
committerSven Gothel <[email protected]>2012-03-17 21:18:18 +0100
commitb048c2458b53eb012d15e21dde9e8ec0b1406d0b (patch)
tree52998b76cde5cab0479f5a002157af9fbfcc6a5e /src/test-native/displayMultiple01.c
parenta40e22a58e0c71a95f11b7c7e83247fbd4a4d94f (diff)
move src/test/native -> src/test-native - allowing better exclusion for archive scripts
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;
+}