hedgewars/uStore.pas
changeset 5130 3602ede67ec5
parent 5109 6d2e8a24277e
child 5167 7b515d0945b1
equal deleted inserted replaced
5128:3c65326bb713 5130:3602ede67ec5
   941 
   941 
   942     // we need to reset the gl context from the one created by SDL as we have our own drawing system
   942     // we need to reset the gl context from the one created by SDL as we have our own drawing system
   943     glMatrixMode(GL_PROJECTION);
   943     glMatrixMode(GL_PROJECTION);
   944     glLoadIdentity();
   944     glLoadIdentity();
   945 {$ELSE}
   945 {$ELSE}
   946     SDLPrimSurface:= SDL_SetVideoMode(cScreenWidth, cScreenHeight, cBits, flags);
   946     if not cOnlyStats then
   947     SDLTry(SDLPrimSurface <> nil, true);
   947         begin
       
   948         SDLPrimSurface:= SDL_SetVideoMode(cScreenWidth, cScreenHeight, cBits, flags);
       
   949         SDLTry(SDLPrimSurface <> nil, true);
       
   950         end;
   948 {$ENDIF}
   951 {$ENDIF}
   949 
   952 
   950     AddFileLog('Setting up OpenGL (using driver: ' + shortstring(SDL_VideoDriverName(buf, sizeof(buf))) + ')');
   953     AddFileLog('Setting up OpenGL (using driver: ' + shortstring(SDL_VideoDriverName(buf, sizeof(buf))) + ')');
   951     SetupOpenGL();
   954     SetupOpenGL();
   952 end;
   955 end;