From b0c7a401d67305ed49f3b24f31887bcf18bae5d4 Mon Sep 17 00:00:00 2001 From: mfranz Date: Sun, 29 Apr 2007 21:15:45 +0000 Subject: [PATCH] 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) --- src/Main/splash.cxx | 1 + 1 file changed, 1 insertion(+) 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();