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:
parent
a516ad6bcd
commit
b0c7a401d6
1 changed files with 1 additions and 0 deletions
|
@ -139,6 +139,7 @@ void fgSplashUpdate ( float alpha ) {
|
||||||
glPushMatrix();
|
glPushMatrix();
|
||||||
glLoadIdentity();
|
glLoadIdentity();
|
||||||
gluOrtho2D(0, screen_width, 0, screen_height);
|
gluOrtho2D(0, screen_width, 0, screen_height);
|
||||||
|
glViewport(0, 0, screen_width, screen_height);
|
||||||
glMatrixMode(GL_MODELVIEW);
|
glMatrixMode(GL_MODELVIEW);
|
||||||
glPushMatrix();
|
glPushMatrix();
|
||||||
glLoadIdentity();
|
glLoadIdentity();
|
||||||
|
|
Loading…
Reference in a new issue