Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

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

  • Loading branch information
slouken committed Nov 18, 2009
1 parent 9de246c commit 66177f070f72a3b0e5788dc6ec889320ecf2fe02
Showing with 1 addition and 3 deletions.
  1. +1 −3 src/video/SDL_video.c
@@ -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;
}
}

0 comments on commit 66177f0

Please sign in to comment.