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: default linkage to legacy OpenGL (libGL.so) library #410

Closed
wants to merge 1 commit into from
Closed

Linux: default linkage to legacy OpenGL (libGL.so) library #410

wants to merge 1 commit into from

Conversation

mlauss2
Copy link
Contributor

@mlauss2 mlauss2 commented Jun 3, 2024

Modern CMake (and when I initially wrote the CMakeLists) prefers GLVND, which is a fancy way to dispatch OpenGL calls over multiple different client libraries. However that does not work with the ancient (<=340.xx) nvidia binary linux drivers, which still assume that there can be only one libGL.so on a linux system.

Even if the GLVND libraries are available on the target system, there will not be any GL output since the client library does not understand the GLVND dispatches, resulting in black screens.

Fix this by explicitly requesting CMake to prefer the legacy OpenGL linkage approach.

Fixes #395 and I suspect a few other crashes as well.

Modern CMake (and when I initially wrote the CMakeLists) prefers
GLVND, which is a fancy way to dispatch OpenGL calls over multiple
different client libraries.  However that does not work with the
ancient (<=340.xx) nvidia binary linux drivers, which still assume
that there can be only one libGL.so on a linux system.

Even if the GLVND libraries are available on the target system,
there will not be any GL output since the client library does
not understand the GLVND dispatches, resulting in black screens.

Fix this by explicitly requesting CMake to prefer the legacy
OpenGL linkage approach.

Fixes #395

Signed-off-by: Manuel Lauss <manuel.lauss@gmail.com>
@mlauss2
Copy link
Contributor Author

mlauss2 commented Jun 27, 2024

I'm going to solve this differently, without build-time dynamic linking to libGL.

@mlauss2 mlauss2 closed this Jun 27, 2024
@mlauss2 mlauss2 deleted the linux-fix-old-nvidia-blobs branch June 28, 2024 07:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Linux] Native Linux version launch but black screen
1 participant