src/video/SDL_video.c
changeset 6611 5c8b5b03ad8a
parent 6602 533131e24aeb
child 6617 3a92812e0c91
     1.1 --- a/src/video/SDL_video.c	Sun Oct 28 13:03:45 2012 -0700
     1.2 +++ b/src/video/SDL_video.c	Sun Oct 28 14:16:18 2012 -0700
     1.3 @@ -1168,7 +1168,9 @@
     1.4              SDL_SetError("No OpenGL support in video driver");
     1.5              return NULL;
     1.6          }
     1.7 -        SDL_GL_LoadLibrary(NULL);
     1.8 +        if (SDL_GL_LoadLibrary(NULL) < 0) {
     1.9 +            return NULL;
    1.10 +        }
    1.11      }
    1.12      window = (SDL_Window *)SDL_calloc(1, sizeof(*window));
    1.13      window->magic = &_this->window_magic;