1
0
Fork 0

Resizing is done when fg_os{,_sdl}.cxx says so, not in every single frame.

(This defeats the purpose of the resize callback and makes "listening" to
the xsize useless.)
This commit is contained in:
mfranz 2006-01-28 00:10:39 +00:00
parent 6de1f56f2c
commit a4bbb31927

View file

@ -336,10 +336,6 @@ 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();