x11vulkan: Use the correct SONAME of libX11-xcb.so.1 on Linux, etc.

On most Unix platforms supported by SDL, the canonical name used to load
a library at runtime includes its ABI major version, and the name
without a version is not guaranteed to exist on non-developer systems.
libX11-xcb.so.1 is correct on Linux, and probably on other Unix
platforms like FreeBSD.

A notable exception is OpenBSD, which apparently does not use
ABI-suffixed names, so continue to use libX11-xcb.so there.

Signed-off-by: Simon McVittie <smcv@collabora.com>
This commit is contained in:
Simon McVittie 2024-09-09 19:56:25 +01:00 committed by Sam Lantinga
parent 412a8244b6
commit 7713a7eec7
2 changed files with 4 additions and 2 deletions

View file

@ -3979,7 +3979,7 @@ extern "C" {
/**
* Specify the XCB library to load for the X11 driver.
*
* This defaults to "libX11-xcb.so"
* The default is platform-specific, often "libX11-xcb.so.1".
*
* This hint should be set before initializing the video subsystem.
*