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

Wayland is not detected by SDL when Mangohud is LD preloaded for OpenGL #1432

Open
shmerl opened this issue Sep 15, 2024 · 1 comment
Open

Comments

@shmerl
Copy link

shmerl commented Sep 15, 2024

In such kind of scenario, things fail to run

  • Something is using its own version of SDL and uses OpenGL
  • MangoHUD is LD preloaded
  • SDL is explicitly dynamically overriden, for example with:
export SDL_DYNAMIC_API=/usr/lib/x86_64-linux-gnu/libSDL2-2.0.so.0
  • SDL Wayland mode is used with
export SDL_VIDEODRIVER='wayland'

Resulting error makes SDL fail due to "not finding Wayland" which is caused by Mangohud's LD preloading doing something wrong.

@shmerl
Copy link
Author

shmerl commented Sep 15, 2024

Hmm, I think it fails even without SDL's dynamic override. It just fails no matter what SDL is used.

Error:

Could not initialize SDL: wayland not available!

A simple test - try running scummvm with SDL_VIDEODRIVER='wayland' and with mangohud's LD preloading for OpenGL. It will fail.

@shmerl shmerl changed the title Wayland is not detected when Mangohud is LD preloaded for OpenGL and SDL dynamic override is used Wayland is not detected when Mangohud is LD preloaded for OpenGL Sep 15, 2024
@shmerl shmerl changed the title Wayland is not detected when Mangohud is LD preloaded for OpenGL Wayland is not detected by SDL when Mangohud is LD preloaded for OpenGL Sep 15, 2024
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

No branches or pull requests

1 participant