mirror of
https://github.com/encounter/SDL.git
synced 2025-05-20 06:11:22 +00:00
Treat empty SDL_VIDEODRIVER var to check all video drivers.
This commit is contained in:
parent
7d90df0ece
commit
9fae8f7088
@ -489,7 +489,7 @@ SDL_VideoInit(const char *driver_name)
|
||||
if (driver_name == NULL) {
|
||||
driver_name = SDL_getenv("SDL_VIDEODRIVER");
|
||||
}
|
||||
if (driver_name != NULL) {
|
||||
if (driver_name != NULL && *driver_name != 0) {
|
||||
const char *driver_attempt = driver_name;
|
||||
while(driver_attempt != NULL && *driver_attempt != 0 && video == NULL) {
|
||||
const char* driver_attempt_end = SDL_strchr(driver_attempt, ',');
|
||||
|
Loading…
x
Reference in New Issue
Block a user