If we explicitly request a driver, try to initialize it.
--HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404189
This commit is contained in:
parent
a192c6e6bc
commit
9e98b7ad9e
1 changed files with 1 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue