Signed-off-by: Eric Engestrom <eric@engestrom.ch>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6241>
surf->SwapInterval = 1;
/* Override that with a driconf-set value. */
- dri2_x11_swap_interval(drv, disp, surf, dri2_dpy->default_swap_interval);
+ dri2_x11_swap_interval(disp->Driver, disp, surf, dri2_dpy->default_swap_interval);
}
return surf;
surf = dri3_create_surface(drv, disp, EGL_WINDOW_BIT, conf,
native_window, attrib_list);
if (surf != NULL)
- dri3_set_swap_interval(drv, disp, surf, dri2_dpy->default_swap_interval);
+ dri3_set_swap_interval(disp->Driver, disp, surf, dri2_dpy->default_swap_interval);
return surf;
}