mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-02 19:40:26 +01:00
egl: replace _EGLDriver param with _EGLDisplay->Driver in dri{2_x11,3}_create_window_surface()
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>
This commit is contained in:
parent
485f8f89f9
commit
f3aa7b2e1b
2 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue