This is super helpful for instance when setting SDL_VIDEODRIVER globally to prefer Wayland. Since both SDL1 and SDL2 share the variable name and there's no wayland driver in SDL1, it fails to initialize video subsystem, while with this change it can nicely fallback to x11.
Adapted from SDL2: https://github.com/libsdl-org/SDL/pull/4267 https://github.com/libsdl-org/SDL/pull/4618
This is super helpful for instance when setting
SDL_VIDEODRIVER
globally to prefer Wayland. Since both SDL1 and SDL2 share the variable name and there's nowayland
driver in SDL1, it fails to initialize video subsystem, while with this change it can nicely fallback tox11
.