glx: tweak dri2 init ordering
Reviewed-by: Adam Jackson <ajax@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30375>
This commit is contained in:
committed by
Marge Bot
parent
f79eb4730c
commit
5f55da01db
+4
-5
@@ -1184,16 +1184,15 @@ dri2CreateDisplay(Display * dpy)
|
||||
|
||||
if (!DRI2QueryExtension(dpy, &eventBase, &errorBase))
|
||||
return NULL;
|
||||
if (!DRI2QueryVersion(dpy, &driMajor, &driMinor) ||
|
||||
driMinor < 3) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
pdp = malloc(sizeof *pdp);
|
||||
if (pdp == NULL)
|
||||
return NULL;
|
||||
|
||||
if (!DRI2QueryVersion(dpy, &driMajor, &driMinor) ||
|
||||
driMinor < 3) {
|
||||
free(pdp);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
i = 0;
|
||||
pdp->loader_extensions[i++] = &dri2LoaderExtension.base;
|
||||
|
||||
Reference in New Issue
Block a user