src/video/SDL_video.c
changeset 6775 ca20a61fe03b
parent 6755 af77e1a6faf0
child 6784 8fd20f04d5d9
equal deleted inserted replaced
6774:ad8522052ce6 6775:ca20a61fe03b
  1303         _this->DestroyWindow(_this, window);
  1303         _this->DestroyWindow(_this, window);
  1304     }
  1304     }
  1305 
  1305 
  1306     if ((window->flags & SDL_WINDOW_OPENGL) != (flags & SDL_WINDOW_OPENGL)) {
  1306     if ((window->flags & SDL_WINDOW_OPENGL) != (flags & SDL_WINDOW_OPENGL)) {
  1307         if (flags & SDL_WINDOW_OPENGL) {
  1307         if (flags & SDL_WINDOW_OPENGL) {
  1308             SDL_GL_LoadLibrary(NULL);
  1308             if (SDL_GL_LoadLibrary(NULL) < 0) {
       
  1309                 return -1;
       
  1310             }
  1309         } else {
  1311         } else {
  1310             SDL_GL_UnloadLibrary();
  1312             SDL_GL_UnloadLibrary();
  1311         }
  1313         }
  1312     }
  1314     }
  1313 
  1315