Fix JPEG-server builds.
This commit is contained in:
parent
fcf0371777
commit
54aca561b6
1 changed files with 8 additions and 1 deletions
|
@ -384,10 +384,17 @@ static osg::ref_ptr<osg::Group> mRealRoot = new osg::Group;
|
|||
|
||||
static osg::ref_ptr<osg::Group> mRoot = new osg::Group;
|
||||
|
||||
#ifdef FG_JPEG_SERVER
|
||||
static void updateRenderer()
|
||||
{
|
||||
globals->get_renderer()->update();
|
||||
}
|
||||
#endif
|
||||
|
||||
FGRenderer::FGRenderer()
|
||||
{
|
||||
#ifdef FG_JPEG_SERVER
|
||||
jpgRenderFrame = FGRenderer::update;
|
||||
jpgRenderFrame = updateRenderer;
|
||||
#endif
|
||||
eventHandler = new FGEventHandler;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue