[sway] don't force vulkan on Intel IGP
This commit is contained in:
parent
d8f68b8929
commit
7a0423d99d
1 changed files with 9 additions and 2 deletions
|
@ -59,7 +59,7 @@ PKGNAM=${PRGNAM}
|
||||||
PATCH=${PATCH:-"no"}
|
PATCH=${PATCH:-"no"}
|
||||||
if [ "$PATCH" = "yes" ]; then
|
if [ "$PATCH" = "yes" ]; then
|
||||||
for p in "$CWD"/patches/*.patch; do
|
for p in "$CWD"/patches/*.patch; do
|
||||||
patch -p1 < "$p"
|
patch -p1 < "$p"
|
||||||
done
|
done
|
||||||
PKGVERSION="${PKGVERSION}_patched"
|
PKGVERSION="${PKGVERSION}_patched"
|
||||||
fi
|
fi
|
||||||
|
@ -203,7 +203,14 @@ echo "sway Starting: \$( date )"
|
||||||
|
|
||||||
unset QT_QPA_PLATFORM
|
unset QT_QPA_PLATFORM
|
||||||
|
|
||||||
export WLR_RENDERER=vulkan
|
|
||||||
|
# vulklan seems buggy with Intel IGP
|
||||||
|
if \$(lsmod | grep -q "^i915.*$"); then
|
||||||
|
export WLR_RENDERER=gles2
|
||||||
|
else
|
||||||
|
export WLR_RENDERER=vulkan
|
||||||
|
fi
|
||||||
|
|
||||||
export CLUTTER_BACKEND=wayland
|
export CLUTTER_BACKEND=wayland
|
||||||
export SDL_VIDEODRIVER=wayland
|
export SDL_VIDEODRIVER=wayland
|
||||||
export XDG_SESSION_DESKTOP=sway
|
export XDG_SESSION_DESKTOP=sway
|
||||||
|
|
Loading…
Reference in a new issue