Commit 9e98b7ad authored by Sam Lantinga's avatar Sam Lantinga

If we explicitly request a driver, try to initialize it.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404189
parent a192c6e6
...@@ -193,9 +193,7 @@ SDL_VideoInit(const char *driver_name, Uint32 flags) ...@@ -193,9 +193,7 @@ SDL_VideoInit(const char *driver_name, Uint32 flags)
if (driver_name != NULL) { if (driver_name != NULL) {
for (i = 0; bootstrap[i]; ++i) { for (i = 0; bootstrap[i]; ++i) {
if (SDL_strcasecmp(bootstrap[i]->name, driver_name) == 0) { if (SDL_strcasecmp(bootstrap[i]->name, driver_name) == 0) {
if (bootstrap[i]->available()) { video = bootstrap[i]->create(index);
video = bootstrap[i]->create(index);
}
break; break;
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment