summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorChristian König <[email protected]>2012-10-24 11:18:40 +0200
committerChristian König <[email protected]>2012-10-26 09:53:04 +0200
commit59d4bc8c48836ff86052ea62f6ce24e1f2402d02 (patch)
treedf221328855c8bfb5d60e707525f78c7a33225ad /src
parent8cb2a4a7f506ea08d4adab0aeda5fcf753cd95e5 (diff)
vl: fix the dri winsys helper screen init
Signed-off-by: Christian König <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/gallium/auxiliary/vl/vl_winsys_dri.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/vl/vl_winsys_dri.c b/src/gallium/auxiliary/vl/vl_winsys_dri.c
index 8e4e026a211..95aabac17e0 100644
--- a/src/gallium/auxiliary/vl/vl_winsys_dri.c
+++ b/src/gallium/auxiliary/vl/vl_winsys_dri.c
@@ -333,6 +333,8 @@ vl_screen_create(Display *display, int screen)
goto free_screen;
s = xcb_setup_roots_iterator(xcb_get_setup(scrn->conn));
+ while (screen--)
+ xcb_screen_next(&s);
connect_cookie = xcb_dri2_connect_unchecked(scrn->conn, s.data->root, XCB_DRI2_DRIVER_TYPE_DRI);
connect = xcb_dri2_connect_reply(scrn->conn, connect_cookie, NULL);
if (connect == NULL || connect->driver_name_length + connect->device_name_length == 0)