Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linux: Fix PRIME detection on Steam #46792

Merged

Conversation

akien-mga
Copy link
Member

To avoid trying to do PRIME detection on fake libGL.so as used by e.g.
Renderdoc or Primus, we skip detection if there's a libGL.so in
LD_LIBRARY_PATH... and our luck is that Steam defines it and includes
system paths too, thus the actual system libGL... 🤦

So if we detect Steam, we skip this check.

Will do matching PR for 3.2.


One concern with this fix though - do we risk running into issues for users that do primusrun %command% in a Steam context? Or is the previous check robust enough to exclude all bumblebee hacks?

To avoid trying to do PRIME detection on fake `libGL.so` as used by e.g.
Renderdoc or Primus, we skip detection if there's a `libGL.so` in
`LD_LIBRARY_PATH`... and our luck is that Steam defines it and includes
system paths too, thus the actual system `libGL`... 🤦

So if we detect Steam, we skip this check.

Co-authored-by: Hein-Pieter van Braam-Stewart <[email protected]>
@akien-mga akien-mga merged commit 8af3d56 into godotengine:master Mar 8, 2021
@akien-mga akien-mga deleted the linux-fix-detect_prime-steam branch March 8, 2021 15:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants