1
0
Fork 0

restore the uglyness: call the resize callback every frame again, even

though the window wasn't resized. I'm just not adventurous enough for
a cleaner solution in the light of the upcoming release. At least the
xsize/ysize properties aren't set each frame any more, so listeners
work now properly.
This commit is contained in:
mfranz 2006-01-28 16:06:03 +00:00
parent 8f9d8cab03
commit dc7cc2015b

View file

@ -336,6 +336,10 @@ FGRenderer::update( bool refresh_camera_settings ) {
current__view->set_dirty();
if ( refresh_camera_settings ) {
// update view port
resize( fgGetInt("/sim/startup/xsize"),
fgGetInt("/sim/startup/ysize") );
// Tell GL we are switching to model view parameters
glMatrixMode(GL_MODELVIEW);
glLoadIdentity();