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:
parent
8f9d8cab03
commit
dc7cc2015b
1 changed files with 4 additions and 0 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Reference in a new issue