Commit 1461cf06a2 for qemu.org
commit 1461cf06a2b97bca224e2d219669f118ca4906ce
Author: Akihiko Odaki <odaki@rsg.ci.i.u-tokyo.ac.jp>
Date: Sun Sep 13 15:42:12 2026 +0900
ui/gtk: Remove glFlush() after eglSwapBuffers()
It is redundant since eglSwapBuffers() implicitly performs glFlush().
Message-ID: <20260913-flush-v1-1-229efa3f1e53@rsg.ci.i.u-tokyo.ac.jp>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Akihiko Odaki <odaki@rsg.ci.i.u-tokyo.ac.jp>
diff --git a/ui/gtk-egl.c b/ui/gtk-egl.c
index d595916476..0eec06826b 100644
--- a/ui/gtk-egl.c
+++ b/ui/gtk-egl.c
@@ -104,7 +104,6 @@ void gd_egl_draw(VirtualConsole *vc)
surface_width(vc->gfx.ds),
surface_height(vc->gfx.ds));
- glFlush();
#ifdef CONFIG_GBM
if (dmabuf) {
gd_gl_wait_sync(vc, sync);
@@ -122,8 +121,6 @@ void gd_egl_draw(VirtualConsole *vc)
gd_update_scale(vc, ww, wh,
surface_width(vc->gfx.ds),
surface_height(vc->gfx.ds));
-
- glFlush();
}
}