diff --git a/Meta/run.sh b/Meta/run.sh index 0e3e03b868..fc9e6152bf 100755 --- a/Meta/run.sh +++ b/Meta/run.sh @@ -187,8 +187,14 @@ else SERENITY_QEMU_DISPLAY_BACKEND="${SERENITY_QEMU_DISPLAY_BACKEND:-gtk,gl=off}" fi +SERENITY_GL="${SERENITY_GL:-0}" if [ -z "$SERENITY_QEMU_DISPLAY_DEVICE" ]; then - if [ "$SERENITY_SCREENS" -gt 1 ]; then + if [ "$SERENITY_GL" = "1" ]; then + SERENITY_QEMU_DISPLAY_DEVICE="virtio-vga-gl " + if [ "$SERENITY_SCREENS" -gt 1 ]; then + die "SERENITY_GL and multi-monitor support cannot be setup simultaneously" + fi + elif [ "$SERENITY_SCREENS" -gt 1 ]; then SERENITY_QEMU_DISPLAY_DEVICE="virtio-vga,max_outputs=$SERENITY_SCREENS " # QEMU appears to always relay absolute mouse coordinates relative to the screen that the mouse is # pointed to, without any way for us to know what screen it was. So, when dealing with multiple