From a4bbb31927e481adecfacd21575bfb71c47ae005 Mon Sep 17 00:00:00 2001 From: mfranz Date: Sat, 28 Jan 2006 00:10:39 +0000 Subject: [PATCH] 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.) --- src/Main/renderer.cxx | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/Main/renderer.cxx b/src/Main/renderer.cxx index 37a74def7..9f7ccb0db 100644 --- a/src/Main/renderer.cxx +++ b/src/Main/renderer.cxx @@ -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();