We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3c04a2c commit 2956d39Copy full SHA for 2956d39
1 file changed
bottles/backend/utils/vulkan.py
@@ -19,6 +19,7 @@
19
from glob import glob
20
import shutil
21
import subprocess
22
+import filecmp
23
24
25
class VulkanUtils:
@@ -45,7 +46,17 @@ def __get_vk_icd_loaders(self):
45
46
47
for file in _files:
48
if "nvidia" in file.lower():
- loaders["nvidia"] += [file]
49
+ # Workaround for nvidia flatpak bug: https://github.com/flathub/org.freedesktop.Platform.GL.nvidia/issues/112
50
+ should_skip = False
51
+ for nvidia_loader in loaders["nvidia"]:
52
+ try:
53
+ if filecmp.cmp(nvidia_loader, file):
54
+ should_skip = True
55
+ continue
56
+ except:
57
+ pass
58
+ if not should_skip:
59
+ loaders["nvidia"] += [file]
60
elif "amd" in file.lower() or "radeon" in file.lower():
61
loaders["amd"] += [file]
62
elif "intel" in file.lower():
0 commit comments