mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-14 01:04:38 +03:00
Meta: Do not use gl=on if building in WSL
This commit is contained in:
parent
9ed051fe25
commit
1f33c517df
Notes:
sideshowbarker
2024-07-18 11:26:58 +09:00
Author: https://github.com/stelar7 Commit: https://github.com/SerenityOS/serenity/commit/1f33c517df4 Pull-request: https://github.com/SerenityOS/serenity/pull/8263
@ -54,7 +54,13 @@ installed_major_version=$("$SERENITY_QEMU_BIN" -version | head -n 1 | sed -E 's/
|
||||
[ "$installed_major_version" -lt "$SERENITY_QEMU_MIN_REQ_VERSION" ] && die "Required QEMU >= 5.0! Found $($SERENITY_QEMU_BIN -version | head -n 1)"
|
||||
|
||||
SERENITY_SCREENS="${SERENITY_SCREENS:-1}"
|
||||
SERENITY_QEMU_DISPLAY_BACKEND="${SERENITY_QEMU_DISPLAY_BACKEND:-sdl,gl=on}"
|
||||
if uname -a | grep -iq WSL; then
|
||||
# QEMU for windows does not like gl=on, so detect if we are building in wsl, and if so, disable it
|
||||
SERENITY_QEMU_DISPLAY_BACKEND="${SERENITY_QEMU_DISPLAY_BACKEND:-sdl,gl=off}"
|
||||
else
|
||||
SERENITY_QEMU_DISPLAY_BACKEND="${SERENITY_QEMU_DISPLAY_BACKEND:-sdl,gl=on}"
|
||||
fi
|
||||
|
||||
if [ "$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
|
||||
|
Loading…
Reference in New Issue
Block a user