Skip to content

Commit e600d74

Browse files
committed
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 <martin@wimpress.org>
1 parent dead42d commit e600d74

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

quickemu

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1337,7 +1337,9 @@ function configure_display() {
13371337
[ "${gl}" == "on" ] && gl="off"
13381338
fi;;
13391339
gtk) DISPLAY_RENDER="${display},grab-on-hover=on,zoom-to-fit=off,gl=${gl}";;
1340-
none|spice) DISPLAY_RENDER="none";;
1340+
none) DISPLAY_RENDER="none"
1341+
gl="off";; # No display backend means no GL context
1342+
spice) DISPLAY_RENDER="none";;
13411343
sdl) DISPLAY_RENDER="${display},gl=${gl}";;
13421344
spice-app) DISPLAY_RENDER="${display},gl=${gl}";;
13431345
*) DISPLAY_RENDER="${display}";;

0 commit comments

Comments
 (0)