If Vulkan Cube test is not passed then use OpenGL

This commit is contained in:
Boria138 2023-09-19 14:59:11 +06:00
parent 89566ea1ef
commit f409d7f5d5
2 changed files with 7 additions and 1 deletions

@ -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"

@ -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