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>
This commit is contained in:
parent
dead42dc25
commit
e600d742ba
4
quickemu
4
quickemu
|
|
@ -1337,7 +1337,9 @@ function configure_display() {
|
||||||
[ "${gl}" == "on" ] && gl="off"
|
[ "${gl}" == "on" ] && gl="off"
|
||||||
fi;;
|
fi;;
|
||||||
gtk) DISPLAY_RENDER="${display},grab-on-hover=on,zoom-to-fit=off,gl=${gl}";;
|
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}";;
|
sdl) DISPLAY_RENDER="${display},gl=${gl}";;
|
||||||
spice-app) DISPLAY_RENDER="${display},gl=${gl}";;
|
spice-app) DISPLAY_RENDER="${display},gl=${gl}";;
|
||||||
*) DISPLAY_RENDER="${display}";;
|
*) DISPLAY_RENDER="${display}";;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue