Difference for arch/ogl/sdlgl.c from version 1.3 to 1.4


version 1.3 version 1.4
Line 40
 
Line 40
  SDL_GL_SwapBuffers();   SDL_GL_SwapBuffers();
 }  }
 int ogl_init_window(int x, int y){  int ogl_init_window(int x, int y){
    int bpp = FindArg("-gl_16bpp") ? 16 : 32;
  if (gl_initialized){   if (gl_initialized){
  if (x==curx && y==cury && curfull==ogl_fullscreen)   if (x==curx && y==cury && curfull==ogl_fullscreen)
  return 0;   return 0;
Line 47
 
Line 48
  ogl_smash_texture_list_internal();//if we are or were fullscreen, changing vid mode will invalidate current textures   ogl_smash_texture_list_internal();//if we are or were fullscreen, changing vid mode will invalidate current textures
  }   }
  SDL_WM_SetCaption(DESCENT_VERSION " " D1X_DATE, "Descent");   SDL_WM_SetCaption(DESCENT_VERSION " " D1X_DATE, "Descent");
         if (!SDL_SetVideoMode(x,y, 16, SDL_OPENGL | (ogl_fullscreen?SDL_FULLSCREEN:0))) {          if (!SDL_SetVideoMode(x,y, bpp, SDL_OPENGL | (ogl_fullscreen?SDL_FULLSCREEN:0))) {
            Error("Could not set %dx%dx16 opengl video mode\n",x,y);             Error("Could not set %dx%dx%d opengl video mode\n",x,y,bpp);
         }          }
  SDL_ShowCursor(0);   SDL_ShowCursor(0);
   

Legend:
line(s) removed in v.1.3 
line(s) changed
 line(s) added in v.1.4