From 84406a5eddad7b84b98b02935ae01634f9d25b93 Mon Sep 17 00:00:00 2001 From: Martin Wimpress Date: Sun, 25 Jan 2026 15:07:52 +0000 Subject: [PATCH] fix(quickemu): disable GL when display backend is none - Disable GL context creation when no display backend is selected by setting gl="off" - Keep spice behaviour unchanged (DISPLAY_RENDER remains "none") - Prevent GL-related errors and unnecessary GPU initialisation for headless VMs Signed-off-by: Martin Wimpress --- quickemu | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/quickemu b/quickemu index 2a97b75fbe..7e75357980 100755 --- a/quickemu +++ b/quickemu @@ -1337,7 +1337,9 @@ function configure_display() { [ "${gl}" == "on" ] && gl="off" fi;; gtk) DISPLAY_RENDER="${display},grab-on-hover=on,zoom-to-fit=off,gl=${gl}";; - none|spice) DISPLAY_RENDER="none";; + none) DISPLAY_RENDER="none" + gl="off";; # No display backend means no GL context + spice) DISPLAY_RENDER="none";; sdl) DISPLAY_RENDER="${display},gl=${gl}";; spice-app) DISPLAY_RENDER="${display},gl=${gl}";; *) DISPLAY_RENDER="${display}";;