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:
parent
6de1f56f2c
commit
a4bbb31927
1 changed files with 0 additions and 4 deletions
|
@ -336,10 +336,6 @@ FGRenderer::update( bool refresh_camera_settings ) {
|
||||||
current__view->set_dirty();
|
current__view->set_dirty();
|
||||||
|
|
||||||
if ( refresh_camera_settings ) {
|
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
|
// Tell GL we are switching to model view parameters
|
||||||
glMatrixMode(GL_MODELVIEW);
|
glMatrixMode(GL_MODELVIEW);
|
||||||
glLoadIdentity();
|
glLoadIdentity();
|
||||||
|
|
Loading…
Add table
Reference in a new issue