No real change, apart from keeping the calls to the underlying winsys
(x11) next to each other. Just like platform_wayland.
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
if (!dri2_x11_connect(dri2_dpy))
goto cleanup_conn;
- if (!dri2_load_driver(disp))
+ if (!dri2_x11_local_authenticate(disp))
goto cleanup_fd;
- if (!dri2_x11_local_authenticate(disp))
- goto cleanup_driver;
+ if (!dri2_load_driver(disp))
+ goto cleanup_fd;
if (dri2_dpy->dri2_minor >= 1) {
dri2_dpy->dri2_loader_extension.base.name = __DRI_DRI2_LOADER;