diff options
author | Mathias Fröhlich <[email protected]> | 2019-06-07 07:12:42 +0200 |
---|---|---|
committer | Mathias Fröhlich <[email protected]> | 2019-06-10 11:06:48 +0200 |
commit | a7ecf78b900c28aafdc1cd1e1a4117feb30a66c9 (patch) | |
tree | da269a5af9762133979d43e801823439bfa03c03 /src/egl/drivers/dri2/platform_device.c | |
parent | 91aa25f4625014ddf194578fc1c1d0a505e5f8db (diff) |
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 <[email protected]>
Signed-off-by: Mathias Fröhlich <[email protected]>
Diffstat (limited to 'src/egl/drivers/dri2/platform_device.c')
-rw-r--r-- | src/egl/drivers/dri2/platform_device.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/egl/drivers/dri2/platform_device.c b/src/egl/drivers/dri2/platform_device.c index 81725ae7de9..6b80a3869b3 100644 --- a/src/egl/drivers/dri2/platform_device.c +++ b/src/egl/drivers/dri2/platform_device.c @@ -142,7 +142,7 @@ dri2_device_create_surface(_EGLDriver *drv, _EGLDisplay *disp, EGLint type, goto cleanup_surface; } - if (!dri2_create_drawable(dri2_dpy, config, dri2_surf)) + if (!dri2_create_drawable(dri2_dpy, config, dri2_surf, dri2_surf)) goto cleanup_surface; if (conf->RedSize == 5) |