From bbff8ecc68234a37a18f38083dc48003ce215bb6 Mon Sep 17 00:00:00 2001
From: Htylol <55416159+Htylol@users.noreply.github.com>
Date: Sun, 4 Feb 2024 02:15:55 +0500
Subject: [PATCH] fix

---
 data_from_portwine/scripts/runlib | 9 +--------
 1 file changed, 1 insertion(+), 8 deletions(-)

diff --git a/data_from_portwine/scripts/runlib b/data_from_portwine/scripts/runlib
index b0a40593..798b9a1b 100755
--- a/data_from_portwine/scripts/runlib
+++ b/data_from_portwine/scripts/runlib
@@ -462,14 +462,7 @@ start_portwine () {
         export WINE_D3D_CONFIG='renderer=gl'
     elif [[ "${PW_VULKAN_USE}" == "5" ]] ; then
         print_info "Use OpenGL Zink"
-        if [[ "${XDG_SESSION_TYPE}" == "wayland" ]] ; then
-        export GL_YIELD="NOTHING"
-        export mesa_glthread=true
-        export WINE_D3D_CONFIG='renderer=gl'
-        export  __GLX_VENDOR_LIBRARY_NAME=mesa
-        export MESA_LOADER_DRIVER_OVERRIDE=zink
-        export GALLIUM_DRIVER=zink
-        elif [[ "${PW_USE_GAMESCOPE}" == 1 ]] ; then
+        if [[ "${XDG_SESSION_TYPE}" == "wayland" ]] || [[ "${PW_USE_GAMESCOPE}" == 1 ]]  ; then
         export GL_YIELD="NOTHING"
         export mesa_glthread=true
         export WINE_D3D_CONFIG='renderer=gl'