1
0
Fork 0

Fix JPEG-server builds.

This commit is contained in:
James Turner 2011-09-21 19:22:13 +01:00
parent fcf0371777
commit 54aca561b6

View file

@ -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;
}