Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
If we explicitly request a driver, try to initialize it.
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Nov 18, 2009
1 parent 9de246c commit 66177f0
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/video/SDL_video.c
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit 66177f0

Please sign in to comment.