0x0000000000474dd6 in flightgear::CameraGroup::setCameraParameters
(this=0x2149370, vfov=0, aspectRatio=0) at
src/Main/CameraGroup.cxx:224

    _viewer->getCamera()->setProjectionMatrixAsPerspective(vfov,
                                                           1.0f / aspectRatio,
                                                           _zNear, _zFar);

As far as I can tell, setting aspectRatio would be the job of
FGRenderer::resize(). In fact, that function does get called before
the problem occurs, but at that point viewmgr is not yet instantiated
so aspectRatio isn't calculated.
I don't have a fix for this (apart from adding a check for zero). Tim?

-- 
Csaba/Jester

------------------------------------------------------------------------------
_______________________________________________
Flightgear-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to