Alex Romosan writes:
> to use the latest osg from svn you need to apply this patch to
> FlightGear:
and this one as well:
Index: src/Model/panelnode.cxx
===================================================================
RCS file: /var/cvs/FlightGear-0.9/FlightGear/src/Model/panelnode.cxx,v
retrieving revision 1.13
diff -u -r1.13 panelnode.cxx
--- src/Model/panelnode.cxx 7 Jan 2007 19:00:25 -0000 1.13
+++ src/Model/panelnode.cxx 31 Mar 2007 21:58:47 -0000
@@ -120,8 +120,9 @@
}
void
-FGPanelNode::drawImplementation(osg::State& state) const
+FGPanelNode::drawImplementation(osg::RenderInfo& renderInfo) const
{
+ osg::State& state = *renderInfo.getState();
osg::ref_ptr<osg::RefMatrix> mv = new osg::RefMatrix;
mv->set(_xform*state.getModelViewMatrix());
state.applyModelViewMatrix(mv.get());
Index: src/Model/panelnode.hxx
===================================================================
RCS file: /var/cvs/FlightGear-0.9/FlightGear/src/Model/panelnode.hxx,v
retrieving revision 1.6
diff -u -r1.6 panelnode.hxx
--- src/Model/panelnode.hxx 7 Jan 2007 19:00:25 -0000 1.6
+++ src/Model/panelnode.hxx 31 Mar 2007 21:58:47 -0000
@@ -33,7 +33,7 @@
FGPanel* getPanel() { return _panel; }
- virtual void drawImplementation(osg::State& state) const;
+ virtual void drawImplementation(osg::RenderInfo& renderInfo) const;
virtual osg::BoundingBox computeBound() const;
private:
--alex--
--
| I believe the moment is at hand when, by a paranoiac and active |
| advance of the mind, it will be possible (simultaneously with |
| automatism and other passive states) to systematize confusion |
| and thus to help to discredit completely the world of reality. |
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Flightgear-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/flightgear-users