From: Eric Engestrom Date: Sun, 22 Apr 2018 14:48:15 +0000 (+0200) Subject: egl: replace _EGLDriver param with _EGLDisplay->Driver in dri{2_x11,3}_create_window_... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f3aa7b2e1b19ac71c1eee71c8a2a61cfc7d1a6d3;p=mesa.git egl: replace _EGLDriver param with _EGLDisplay->Driver in dri{2_x11,3}_create_window_surface() Signed-off-by: Eric Engestrom Reviewed-by: Marek Olšák Part-of: --- diff --git a/src/egl/drivers/dri2/platform_x11.c b/src/egl/drivers/dri2/platform_x11.c index 68520f82022..9d3e4484c53 100644 --- a/src/egl/drivers/dri2/platform_x11.c +++ b/src/egl/drivers/dri2/platform_x11.c @@ -379,7 +379,7 @@ dri2_x11_create_window_surface(const _EGLDriver *drv, _EGLDisplay *disp, 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; diff --git a/src/egl/drivers/dri2/platform_x11_dri3.c b/src/egl/drivers/dri2/platform_x11_dri3.c index e1bacd804a7..bf694287a04 100644 --- a/src/egl/drivers/dri2/platform_x11_dri3.c +++ b/src/egl/drivers/dri2/platform_x11_dri3.c @@ -232,7 +232,7 @@ dri3_create_window_surface(const _EGLDriver *drv, _EGLDisplay *disp, 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; }