summaryrefslogtreecommitdiff
path: root/src/egl/drivers/dri2/platform_wayland.c
diff options
context:
space:
mode:
authorMathias Fröhlich <mathias.froehlich@web.de>2019-06-07 07:12:42 +0200
committerMathias Fröhlich <mathias.froehlich@web.de>2019-06-10 11:06:48 +0200
commita7ecf78b900c28aafdc1cd1e1a4117feb30a66c9 (patch)
treeda269a5af9762133979d43e801823439bfa03c03 /src/egl/drivers/dri2/platform_wayland.c
parent91aa25f4625014ddf194578fc1c1d0a505e5f8db (diff)
downloadmesa-a7ecf78b900c28aafdc1cd1e1a4117feb30a66c9.tar.gz
egl: Let the caller of dri2_create_drawable decide about loaderPrivate.
In the call arguments to dri2_create_drawable decouple loaderPrivate from dri2_surf. For all callers of dri2_create_drawable the two pointers are the same with the exception of the gbm backed platform. Let the calling code of dri2_create_drawable decide what loaderPrivate shall be. Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Signed-off-by: Mathias Fröhlich <Mathias.Froehlich@web.de>
Diffstat (limited to 'src/egl/drivers/dri2/platform_wayland.c')
-rw-r--r--src/egl/drivers/dri2/platform_wayland.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/egl/drivers/dri2/platform_wayland.c b/src/egl/drivers/dri2/platform_wayland.c
index fb5ecdab2c5..d7e7eaa2c95 100644
--- a/src/egl/drivers/dri2/platform_wayland.c
+++ b/src/egl/drivers/dri2/platform_wayland.c
@@ -348,7 +348,7 @@ dri2_wl_create_window_surface(_EGLDriver *drv, _EGLDisplay *disp,
if (dri2_dpy->flush)
dri2_surf->wl_win->resize_callback = resize_callback;
- if (!dri2_create_drawable(dri2_dpy, config, dri2_surf))
+ if (!dri2_create_drawable(dri2_dpy, config, dri2_surf, dri2_surf))
goto cleanup_surf_wrapper;
dri2_surf->base.SwapInterval = dri2_dpy->default_swap_interval;