diff --git a/data_from_portwine/scripts/functions_helper b/data_from_portwine/scripts/functions_helper index 5f15023e..129484f7 100755 --- a/data_from_portwine/scripts/functions_helper +++ b/data_from_portwine/scripts/functions_helper @@ -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 } diff --git a/data_from_portwine/scripts/start.sh b/data_from_portwine/scripts/start.sh index 37162a4a..effe9267 100755 --- a/data_from_portwine/scripts/start.sh +++ b/data_from_portwine/scripts/start.sh @@ -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" && $( 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