egl/dri2: move surface refcounting out of the platform code
[mesa.git] / src / egl / drivers / dri2 / platform_android.c
index f86898401c6f00b65e1afa809a75a2ee3441052f..9581c9617d670b572c7b3c2d98cb1ae7b954f647 100644 (file)
@@ -344,9 +344,6 @@ droid_destroy_surface(_EGLDriver *drv, _EGLDisplay *disp, _EGLSurface *surf)
    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;
-
    droid_free_local_buffers(dri2_surf);
 
    if (dri2_surf->base.Type == EGL_WINDOW_BIT) {