From 91ccb59ff48126ce7e9893a781646b22057f023a Mon Sep 17 00:00:00 2001 From: Emil Velikov Date: Mon, 3 Sep 2018 13:05:24 +0100 Subject: 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 --- src/egl/drivers/dri2/platform_android.c | 4 ---- 1 file changed, 4 deletions(-) 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): -- cgit v1.2.3