From f409d7f5d570027be27898823c1d5277145b62b4 Mon Sep 17 00:00:00 2001 From: Boria138 Date: Tue, 19 Sep 2023 14:59:11 +0600 Subject: [PATCH] If Vulkan Cube test is not passed then use OpenGL --- data_from_portwine/scripts/runlib | 6 ++++++ data_from_portwine/scripts/start.sh | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/data_from_portwine/scripts/runlib b/data_from_portwine/scripts/runlib index 2821a800..5876757c 100755 --- a/data_from_portwine/scripts/runlib +++ b/data_from_portwine/scripts/runlib @@ -325,6 +325,12 @@ start_portwine () { setxkbmap -model pc101 us -print | xkbcomp - $DISPLAY fi + if ! "${PW_WINELIB}/portable/bin/vkcube" --c 50; then + print_info "Vulkan cube test error use OpenGL" + export PW_VULKAN_USE=0 + fi + + if [[ "${PW_USE_D3D_EXTRAS}" == 1 ]] ; then if [[ -z "`grep d3dx9 "${PORT_WINE_PATH}/data/prefixes/${PW_PREFIX_NAME}/winetricks.log"`" ]] ; then echo "d3dx9" >> "${PORT_WINE_PATH}/data/prefixes/${PW_PREFIX_NAME}/winetricks.log" diff --git a/data_from_portwine/scripts/start.sh b/data_from_portwine/scripts/start.sh index 804aa1de..e65de8a2 100755 --- a/data_from_portwine/scripts/start.sh +++ b/data_from_portwine/scripts/start.sh @@ -153,7 +153,7 @@ portwine_start_debug () { if [ $? -eq 0 ]; then echo "Vulkan cube test passed successfully" >> "${PORT_WINE_PATH}/${portname}.log" else - echo "Vkcube test completed with error" >> "${PORT_WINE_PATH}/${portname}.log" + echo "Vulkan cube test completed with error" >> "${PORT_WINE_PATH}/${portname}.log" fi if [ ! -x "$(command -v gamemoderun 2>/dev/null)" ] then