Fixes:
2569215f43f ("egl/glx: add fallback for zink loading")
Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
Reviewed-by: Adam Jackson <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18749>
#endif
if (!AllocAndFetchScreenConfigs(dpy, dpyPriv)) {
+#if defined(GLX_DIRECT_RENDERING) && !defined(GLX_USE_APPLEGL)
Bool fail = true;
/* if zink was inferred, retry without zink */
if (infer_zink && !explicit_zink) {
free(dpyPriv);
return NULL;
}
+#else
+ free(dpyPriv);
+ return NULL;
+#endif
}
__glX_send_client_info(dpyPriv);