diff options
Diffstat (limited to 'tools')
-rw-r--r-- | tools/virtual.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/virtual.c b/tools/virtual.c index 3bcd0576..883cbf2b 100644 --- a/tools/virtual.c +++ b/tools/virtual.c @@ -387,11 +387,10 @@ static int dri3_query_version(Display *dpy, int *major, int *minor) static int dri3_exists(Display *dpy) { - xcb_extension_t dri3 = { "DRI3", 0 }; const xcb_query_extension_reply_t *ext; int major, minor; - ext = xcb_get_extension_data(XGetXCBConnection(dpy), &dri3); + ext = xcb_get_extension_data(XGetXCBConnection(dpy), &xcb_dri3_id); if (ext == NULL || !ext->present) return 0; |