From 8018629ca7a150be48021699fd7ecad945a4e5d4 Mon Sep 17 00:00:00 2001 From: Jrelvas <55360900+Noted-Jrelvas@users.noreply.github.com> Date: Tue, 24 Oct 2023 20:55:07 +0100 Subject: [PATCH] Update internal/config/cardpick.go (format change) Co-authored-by: sewn Signed-off-by: Jrelvas <55360900+Noted-Jrelvas@users.noreply.github.com> --- internal/config/cardpick.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/config/cardpick.go b/internal/config/cardpick.go index d672598f..8f915a24 100644 --- a/internal/config/cardpick.go +++ b/internal/config/cardpick.go @@ -39,7 +39,7 @@ func (b *Binary) pickCard() error { // Check if the system actually has PRIME offload and there's no ambiguity with the GPUs. if prime { - vk := b.Dxvk && b.Renderer == "D3D11" || b.Renderer == "Vulkan" + vk := (b.Dxvk && b.Renderer == "D3D11") || b.Renderer == "Vulkan" if n != 2 && (!vk && n != 1) { return fmt.Errorf("opengl is not capable of choosing the right gpu, it must be explicitly defined")