From: Emil Velikov Date: Mon, 3 Sep 2018 12:05:24 +0000 (+0100) Subject: egl/android: remove eglSwap* surface check X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=91ccb59ff48126ce7e9893a781646b22057f023a;p=mesa.git egl/android: remove eglSwap* surface check Already handled further up in eglapi.c Cc: samiuddi Cc: Erik Faye-Lund Cc: Tomasz Figa Signed-off-by: Emil Velikov Reviewed-by: Eric Engestrom --- diff --git a/src/egl/drivers/dri2/platform_android.c b/src/egl/drivers/dri2/platform_android.c index bcb3c019b9a..7413b8dfe02 100644 --- a/src/egl/drivers/dri2/platform_android.c +++ b/src/egl/drivers/dri2/platform_android.c @@ -676,10 +676,6 @@ droid_swap_buffers(_EGLDriver *drv, _EGLDisplay *disp, _EGLSurface *draw) { struct dri2_egl_display *dri2_dpy = dri2_egl_display(disp); struct dri2_egl_surface *dri2_surf = dri2_egl_surface(draw); - - if (dri2_surf->base.Type != EGL_WINDOW_BIT) - return EGL_TRUE; - const bool has_mutable_rb = _eglSurfaceHasMutableRenderBuffer(draw); /* From the EGL_KHR_mutable_render_buffer spec (v12):