diff options
author | Emil Velikov <[email protected]> | 2016-08-16 13:04:37 +0100 |
---|---|---|
committer | Emil Velikov <[email protected]> | 2016-10-14 12:16:05 +0100 |
commit | 8fb9ea413de31cc6a95ac4c38215b621de728687 (patch) | |
tree | 01b19e62da5d6cad31f25ce49584180902859674 /src/egl/drivers/dri2/platform_surfaceless.c | |
parent | 02f1158746425617a5e4f5bff4575d7c416d6978 (diff) |
egl/dri2: move surface refcounting out of the platform code
All the platforms are duplicating what should be a driver/dri2 thing -
refcounting. Just fold it accordingly.
Signed-off-by: Emil Velikov <[email protected]>
Reviewed-by: Eric Engestrom <[email protected]>
Diffstat (limited to 'src/egl/drivers/dri2/platform_surfaceless.c')
-rw-r--r-- | src/egl/drivers/dri2/platform_surfaceless.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/egl/drivers/dri2/platform_surfaceless.c b/src/egl/drivers/dri2/platform_surfaceless.c index e0d383ba383..b4653cc807b 100644 --- a/src/egl/drivers/dri2/platform_surfaceless.c +++ b/src/egl/drivers/dri2/platform_surfaceless.c @@ -161,9 +161,6 @@ surfaceless_destroy_surface(_EGLDriver *drv, _EGLDisplay *disp, _EGLSurface *sur struct dri2_egl_display *dri2_dpy = dri2_egl_display(disp); struct dri2_egl_surface *dri2_surf = dri2_egl_surface(surf); - if (!_eglPutSurface(surf)) - return EGL_TRUE; - surfaceless_free_images(dri2_surf); (*dri2_dpy->core->destroyDrawable)(dri2_surf->dri_drawable); |