Alex Romosan writes:

> Index: src/Main/renderer.cxx
> ===================================================================
> RCS file: /var/cvs/FlightGear-0.9/FlightGear/src/Main/renderer.cxx,v
> retrieving revision 1.77
> diff -u -r1.77 renderer.cxx
> --- src/Main/renderer.cxx     1 Mar 2007 18:12:48 -0000       1.77
> +++ src/Main/renderer.cxx     31 Mar 2007 21:27:05 -0000
> @@ -121,8 +121,9 @@
>      stateSet->setMode(GL_FOG, osg::StateAttribute::OFF);
>      stateSet->setMode(GL_DEPTH_TEST, osg::StateAttribute::OFF);
>    }
> -  virtual void drawImplementation(osg::State& state) const
> +  virtual void drawImplementation(osg::RenderInfo& renderInfo) const
>    {
> +    osg::State& state = *renderInfo.getState();
>      state.pushStateSet(getStateSet());
>      state.apply();
>      state.setActiveTextureUnit(0);
> @@ -184,8 +185,9 @@
>  
>      stateSet->setTextureAttribute(0, new osg::TexEnv(osg::TexEnv::MODULATE));
>    }
> -  virtual void drawImplementation(osg::State& state) const
> +  virtual void drawImplementation(osg::RenderInfo& renderInfo) const
>    {
> +    osg::State& state = *renderInfo.getState();
>      state.pushStateSet(getStateSet());
>      state.apply();
>      state.setActiveTextureUnit(0);
>
>
> not sure of it's the correct patch, but it seems to work for me.

according to
http://www.openscenegraph.com/index.php?page=Porting.ChangesToDrawable
this is indeed the way to fix it.

--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

Reply via email to