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