Ooops. Hotfix for run pw_check_glxinfo again.

This commit is contained in:
Mikhail Tergoev
2025-07-24 17:15:33 +03:00
parent d44749fbeb
commit 252ed89e4e
2 changed files with 3 additions and 5 deletions

View File

@ -2818,10 +2818,7 @@ pw_check_vulkan () {
pw_check_glxinfo () {
if [[ ! -f "${PW_TMPFS_PATH}/glxinfo.tmp" ]] ; then
TIMEOUT_CMD="5"
if pw_check_command glxinfo -B
then return 0
else return 1
fi
pw_check_command glxinfo -B
fi
}

View File

@ -535,8 +535,9 @@ SORT_NEWEST="${translations[DXVK, VKD3D (Newest) (Vulkan v1.3+)]}"
if [[ -z $PW_VULKAN_USE ]] \
|| [[ $PW_VULKAN_USE == [3-5] ]]
then
pw_check_glxinfo
if [[ -e "/sys/module/nvidia/version" && $(</sys/module/nvidia/version) > 550.54.13 ]] \
|| [[ $(pw_check_glxinfo) && $(grep "Version:" "$PW_TMPFS_PATH/glxinfo.tmp" | awk '{print $2}') > 25 ]]
|| [[ $(grep "Version:" "$PW_TMPFS_PATH/glxinfo.tmp" | awk '{print $2}') > 25 ]]
then export PW_VULKAN_USE="6"
else export PW_VULKAN_USE="2"
fi