mirror of
https://github.com/Ryujinx/SDL.git
synced 2025-01-03 18:15:39 +00:00
Only force X11 if SDL_VIDEO_DRIVER_X11 is available
This commit is contained in:
parent
bd2f1e9ea6
commit
970ed36de5
|
@ -469,7 +469,7 @@ int SDL_VideoInit(const char *driver_name)
|
||||||
if (!driver_name) {
|
if (!driver_name) {
|
||||||
driver_name = SDL_GetHint(SDL_HINT_VIDEODRIVER);
|
driver_name = SDL_GetHint(SDL_HINT_VIDEODRIVER);
|
||||||
}
|
}
|
||||||
#ifdef __LINUX__
|
#if defined(__LINUX__) && defined(SDL_VIDEO_DRIVER_X11)
|
||||||
if (!driver_name) {
|
if (!driver_name) {
|
||||||
/* See if it looks like we need X11 */
|
/* See if it looks like we need X11 */
|
||||||
SDL_bool force_x11 = SDL_FALSE;
|
SDL_bool force_x11 = SDL_FALSE;
|
||||||
|
|
Loading…
Reference in a new issue