diff --git a/src/egl/drivers/dri2/platform_x11.c b/src/egl/drivers/dri2/platform_x11.c index 4607b1106f6..b826f55f9f7 100644 --- a/src/egl/drivers/dri2/platform_x11.c +++ b/src/egl/drivers/dri2/platform_x11.c @@ -616,7 +616,7 @@ dri2_query_surface(_EGLDisplay *disp, _EGLSurface *surf, EGLint attribute, bool changed = surf->Width != w || surf->Height != h; surf->Width = w; surf->Height = h; - if (changed && dri2_dpy->flush) + if (changed && !dri2_dpy->swrast_not_kms) dri_invalidate_drawable(drawable); } break;