src/video/SDL_video.c
changeset 6775 ca20a61fe03b
parent 6755 af77e1a6faf0
child 6784 8fd20f04d5d9
     1.1 --- a/src/video/SDL_video.c	Fri Dec 28 03:46:55 2012 -0500
     1.2 +++ b/src/video/SDL_video.c	Fri Dec 28 14:46:03 2012 -0800
     1.3 @@ -1305,7 +1305,9 @@
     1.4  
     1.5      if ((window->flags & SDL_WINDOW_OPENGL) != (flags & SDL_WINDOW_OPENGL)) {
     1.6          if (flags & SDL_WINDOW_OPENGL) {
     1.7 -            SDL_GL_LoadLibrary(NULL);
     1.8 +            if (SDL_GL_LoadLibrary(NULL) < 0) {
     1.9 +                return -1;
    1.10 +            }
    1.11          } else {
    1.12              SDL_GL_UnloadLibrary();
    1.13          }