mirror of
https://github.com/yawut/SDL.git
synced 2026-08-20 07:44:03 -05:00
If we explicitly request a driver, try to initialize it.
This commit is contained in:
@@ -193,9 +193,7 @@ SDL_VideoInit(const char *driver_name, Uint32 flags)
|
||||
if (driver_name != NULL) {
|
||||
for (i = 0; bootstrap[i]; ++i) {
|
||||
if (SDL_strcasecmp(bootstrap[i]->name, driver_name) == 0) {
|
||||
if (bootstrap[i]->available()) {
|
||||
video = bootstrap[i]->create(index);
|
||||
}
|
||||
video = bootstrap[i]->create(index);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user