diff src/video/SDL_video.c @ 3448:bc27e1fdd3a7

If we explicitly request a driver, try to initialize it.
author Sam Lantinga <slouken@libsdl.org>
date Wed, 18 Nov 2009 08:54:13 +0000
parents 9f62f47d989b
children 173199bce642
line wrap: on
line diff
--- 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;
             }
         }