If we explicitly request a driver, try to initialize it.
authorSam Lantinga <slouken@libsdl.org>
Wed, 18 Nov 2009 08:54:13 +0000
changeset 3448bc27e1fdd3a7
parent 3447 294b770c1989
child 3449 7bd010656baf
If we explicitly request a driver, try to initialize it.
src/video/SDL_video.c
     1.1 --- a/src/video/SDL_video.c	Wed Nov 18 08:07:37 2009 +0000
     1.2 +++ b/src/video/SDL_video.c	Wed Nov 18 08:54:13 2009 +0000
     1.3 @@ -193,9 +193,7 @@
     1.4      if (driver_name != NULL) {
     1.5          for (i = 0; bootstrap[i]; ++i) {
     1.6              if (SDL_strcasecmp(bootstrap[i]->name, driver_name) == 0) {
     1.7 -                if (bootstrap[i]->available()) {
     1.8 -                    video = bootstrap[i]->create(index);
     1.9 -                }
    1.10 +                video = bootstrap[i]->create(index);
    1.11                  break;
    1.12              }
    1.13          }