]> git.mxchange.org Git - flightgear.git/blobdiff - src/Main/splash.cxx
don't set zero width or height
[flightgear.git] / src / Main / splash.cxx
index 7f5c4a8e6b429f8d1f63acbceedcbba13d93a3ec..202b47c49d100fcada72367ec2996516965e0499 100644 (file)
@@ -139,11 +139,11 @@ void fgSplashProgress ( const char *s )
 void fgSplashUpdate ( float alpha ) {
     int screen_width = fgGetInt("/sim/startup/xsize", 0);
     int screen_height = fgGetInt("/sim/startup/ysize", 0);
-    globals->get_renderer()->resize(screen_width, screen_height);
 
     if (!screen_width || !screen_height)
         return;
 
+    globals->get_renderer()->resize(screen_width, screen_height);
     int size = screen_width < (screen_height - 5 * fontsize)
             ? screen_width : screen_height - 5 * fontsize;
     if (size > 512)