]> git.mxchange.org Git - flightgear.git/commitdiff
set viewport in every progress step, so that the splash texture gets rescaled
authormfranz <mfranz>
Sun, 29 Apr 2007 21:15:45 +0000 (21:15 +0000)
committermfranz <mfranz>
Sun, 29 Apr 2007 21:15:45 +0000 (21:15 +0000)
on window resize in fg/osg (works in fg/plib without that, but can't hurt
there either)                                       (thanks to Tim MOORE)

src/Main/splash.cxx

index 19d7b5e1d71f40e0233a469398a0df6ffe0e3b12..608ab425a8ffd2ce9bab6bf8ee54655e4a5e3c4f 100644 (file)
@@ -139,6 +139,7 @@ void fgSplashUpdate ( float alpha ) {
     glPushMatrix();
     glLoadIdentity();
     gluOrtho2D(0, screen_width, 0, screen_height);
+    glViewport(0, 0, screen_width, screen_height);
     glMatrixMode(GL_MODELVIEW);
     glPushMatrix();
     glLoadIdentity();