From e5f9d004bb6d2f497495ef37243f5f90f2c8f0f7 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Tue, 30 Jul 2024 09:44:07 -0400 Subject: [PATCH] egl: delete a DRI2_FLUSH check in dri2 swapbuffers MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit this is always true here Reviewed-by: Marek Olšák Part-of: --- src/egl/drivers/dri2/platform_x11.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/egl/drivers/dri2/platform_x11.c b/src/egl/drivers/dri2/platform_x11.c index e645b15abb1..f5d877719d1 100644 --- a/src/egl/drivers/dri2/platform_x11.c +++ b/src/egl/drivers/dri2/platform_x11.c @@ -1093,8 +1093,7 @@ dri2_x11_swap_buffers_msc(_EGLDisplay *disp, _EGLSurface *draw, int64_t msc, * happened. The driver should still be using the viewport hack to catch * window resizes. */ - if (dri2_dpy->flush->base.version >= 3 && dri2_dpy->flush->invalidate) - dri2_dpy->flush->invalidate(dri2_surf->dri_drawable); + dri2_dpy->flush->invalidate(dri2_surf->dri_drawable); return swap_count; }