src/video/SDL_video.c
changeset 1909 8f1ab2f7c722
parent 1907 06c27a737b7a
child 1912 8d384b647307
--- a/src/video/SDL_video.c	Sat Jul 15 19:29:42 2006 +0000
+++ b/src/video/SDL_video.c	Sat Jul 15 19:30:18 2006 +0000
@@ -201,6 +201,9 @@
     /* Select the proper video driver */
     index = 0;
     video = NULL;
+    if (driver_name == NULL) {
+        driver_name = SDL_getenv("SDL_VIDEODRIVER");
+    }
     if (driver_name != NULL) {
         for (i = 0; bootstrap[i]; ++i) {
             if (SDL_strncmp(bootstrap[i]->name, driver_name,