We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 3783 - Default libGL path for directFB on Linux differs from x11 path
Summary: Default libGL path for directFB on Linux differs from x11 path
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: video (show other bugs)
Version: 2.0.5
Hardware: All Linux
: P2 normal
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-08-28 16:07 UTC by Clayton Craft
Modified: 2017-08-28 16:56 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Clayton Craft 2017-08-28 16:07:53 UTC
The default path used by directfb for libGL is different than the default path used by x11 in SDL2:


./src/video/directfb/SDL_DirectFB_opengl.c:
path = "libGL.so";

./src/video/x11/SDL_x11opengl.c:
#define DEFAULT_OPENGL  "libGL.so.1"


On at least one distro (Alpine Linux), libGL.so is not created (or more accurately the symlink to libGL.so.1 is not created). For consistency, the 'path' variable in SDL_DirectFB_opengl.c should patch the DEFAULT_OPENGL in SDL_x11opengl.c ("libGL.so.1")
Comment 1 Sam Lantinga 2017-08-28 16:51:42 UTC
Fixed, thanks!
https://hg.libsdl.org/SDL/rev/665376404df1
Comment 2 Clayton Craft 2017-08-28 16:54:20 UTC
Wow, so fast, thank you! And thank you for continuing to support directfb!
Comment 3 Sam Lantinga 2017-08-28 16:56:14 UTC
You're welcome! :)