Skip to content

Commit

Permalink
proton: Disable hidenvgpu if nvapi is enabled.
Browse files Browse the repository at this point in the history
Link: #6227
  • Loading branch information
ivyl authored and rbernon committed Dec 19, 2022
1 parent ddcb61f commit e927eb0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion proton
Original file line number Diff line number Diff line change
Expand Up @@ -1363,7 +1363,8 @@ class Session:
if not "VKD3D_FEATURE_LEVEL" in self.env:
self.env["VKD3D_FEATURE_LEVEL"] = "12_0"

if "hidenvgpu" in self.compat_config:
# enablenvapi beats hidenvgpu
if "hidenvgpu" in self.compat_config and "enablenvapi" not in self.compat_config:
self.env["WINE_HIDE_NVIDIA_GPU"] = "1"

if "usenativexinput13" in self.compat_config:
Expand Down

0 comments on commit e927eb0

Please sign in to comment.