mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 20:38:06 +02:00
loader/dri3: avoid killing the xcb connection if dri3 not found
calling open if the extension is unsupported closes the connection Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30128>
This commit is contained in:
parent
c24891e044
commit
63191107ab
1 changed files with 6 additions and 0 deletions
|
|
@ -1290,6 +1290,12 @@ loader_dri3_open(xcb_connection_t *conn,
|
|||
xcb_xfixes_query_version_cookie_t fixes_cookie;
|
||||
xcb_xfixes_query_version_reply_t *fixes_reply;
|
||||
int fd;
|
||||
const xcb_query_extension_reply_t *extension;
|
||||
|
||||
xcb_prefetch_extension_data(conn, &xcb_dri3_id);
|
||||
extension = xcb_get_extension_data(conn, &xcb_dri3_id);
|
||||
if (!(extension && extension->present))
|
||||
return -1;
|
||||
|
||||
cookie = xcb_dri3_open(conn,
|
||||
root,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue