summaryrefslogtreecommitdiff
path: root/test/dri2-swap.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/dri2-swap.c')
-rw-r--r--test/dri2-swap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/dri2-swap.c b/test/dri2-swap.c
index ba6b2373..1bfb7d10 100644
--- a/test/dri2-swap.c
+++ b/test/dri2-swap.c
@@ -28,7 +28,7 @@ static int dri2_open(Display *dpy)
printf ("Connecting to %s driver on %s\n", driver, device);
- fd = open("/dev/dri/card0", O_RDWR);
+ fd = open(device, O_RDWR);
if (fd < 0)
return -1;