Hi Antonio,
> Hi,
>
> just a quick question, why is this code leaking
> memory:
>
> while( true ){
> beginEditCP(m_pFBO, FBOViewport::CameraFieldMask);
> m_pFBO->setCamera(PerspectiveCamera::create());
> endEditCP(m_pFBO, FBOViewport::CameraFieldMask);
> }
>
> ???
>
> Shouldn't the setCamera method destroy implicitly the old
> camera set on the viewport (he should hold the last
> reference to the old camera!)
yes, try this: Thread::getCurrent()->getChangeList()->clearAll();
Andreas
> Regards,
>
> Toni
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2005.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> Opensg-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/opensg-users
>
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users