summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPatric Stout <truebrain@openttd.org>2021-02-27 00:34:41 +0100
committerGitHub <noreply@github.com>2021-02-27 00:34:41 +0100
commitdc7ba33b515c83ec0ebd9cb1789fd20294dee4ec (patch)
treea7e35407b06388a628b565b8f16de785a77bbea8 /src
parentd068d61f3c412b4e146d5665c17bcbc01acffa1e (diff)
downloadopenttd-dc7ba33b515c83ec0ebd9cb1789fd20294dee4ec.tar.xz
Fix: don't link to OpenGL with SDL2 as backend; SDL2 dynamically loads it (#8745)
Although for developers this doesn't change anything, for our linux-generic binary it changes everything. Without this, the OpenGL dynamic library is dragged in as dependency, and as it depends on X11, that will be dragged in too. This is not something we prefer to have, as that won't run on as many machines as it could. SDL2 doesn't depend on OpenGL directly, as it tries to load it in on runtime. If found, it would work in exactly the same way as if we would link to OpenGL ourselves. As such, this is the best of both worlds: our linux-generics have less linked dependencies, and developers won't notice any difference. As a side-effect, if someone uses linux-generic on a machine that does not have any OpenGL package installed, it will gracefully fall back to the default backend of SDL instead.
Diffstat (limited to 'src')
0 files changed, 0 insertions, 0 deletions