From: mfranz Date: Sun, 29 Apr 2007 21:15:45 +0000 (+0000) Subject: set viewport in every progress step, so that the splash texture gets rescaled X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=b0c7a401d67305ed49f3b24f31887bcf18bae5d4;p=flightgear.git set viewport in every progress step, so that the splash texture gets rescaled on window resize in fg/osg (works in fg/plib without that, but can't hurt there either) (thanks to Tim MOORE) --- diff --git a/src/Main/splash.cxx b/src/Main/splash.cxx index 19d7b5e1d..608ab425a 100644 --- a/src/Main/splash.cxx +++ b/src/Main/splash.cxx @@ -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();