changeset 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 294b770c1989
children 7bd010656baf
files src/video/SDL_video.c
diffstat 1 files changed, 1 insertions(+), 3 deletions(-) [+]
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;
             }
         }