If we explicitly request a driver, try to initialize it.
authorSam Lantinga <slouken@libsdl.org>
Wed, 18 Nov 2009 08:54:13 +0000
changeset 3448 bc27e1fdd3a7
parent 3447 294b770c1989
child 3449 7bd010656baf
If we explicitly request a driver, try to initialize it.
src/video/SDL_video.c
--- a/src/video/SDL_video.c	Wed Nov 18 08:07:37 2009 +0000
+++ b/src/video/SDL_video.c	Wed Nov 18 08:54:13 2009 +0000
@@ -193,9 +193,7 @@
     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;
             }
         }