Skip to content

Commit

Permalink
Update internal/config/cardpick.go (format change)
Browse files Browse the repository at this point in the history
Co-authored-by: sewn <sewn@disroot.org>
Signed-off-by: Jrelvas <55360900+Noted-Jrelvas@users.noreply.github.com>
  • Loading branch information
jrelvas-ipc and apprehensions authored Oct 24, 2023
1 parent a750fd7 commit 8018629
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/config/cardpick.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 8018629

Please sign in to comment.