1
0
Fork 0

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)
This commit is contained in:
mfranz 2007-04-29 21:15:45 +00:00
parent a516ad6bcd
commit b0c7a401d6

View 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();