Thanks for explanation Mathias,  from reviewing the submission I
guessed at the failure mechanism.  I presume you have an app that
broke without these changes?

On Tue, May 13, 2008 at 7:12 AM, Mathias Fröhlich
<[EMAIL PROTECTED]> wrote:
>
>  Good morning,
>
>
>  On Monday 12 May 2008 12:39, Robert Osfield wrote:
>  > As I'm about to make a dev release I've gone ahead and merged your
>  > changes, testing
>  > with standard OSG examples suggest that things are working fine.
>
>  Attaching a renderbuffer without a texture/image attached like for example
>
>  camera->attach(DEPTH_BUFFER, GL_DEPTH_COMPONENT32)
>
>  The reason is that the
>
>  osg::FrameBufferAttachment(osg::Camera::Attachment&);
>
>  initializer does not handle such attachments with no image or texture.
>  I guess that it did not since the Camera::Attachment structure does not know
>  the render buffer size if just an internal format is given.
>
>  With that patch such a renderbuffer is allocated in this case and attached in
>  the same way like the default one is attached.
>
>  We will need that to attach a stencil buffer to an fbo. But we do not need an
>  image or texture for that stencil ...
>
>  Greetings and thanks!
>
>     Mathias
>
>  --
>  Dr. Mathias Fröhlich, science + computing ag, Software Solutions
>  Hagellocher Weg 71-75, D-72070 Tuebingen, Germany
>  Phone: +49 7071 9457-268, Fax: +49 7071 9457-511
>  --
>  Vorstand/Board of Management:
>  Dr. Bernd Finkbeiner, Dr. Florian Geyer,
>  Dr. Roland Niemeier, Dr. Arno Steitz, Dr. Ingrid Zech
>  Vorsitzender des Aufsichtsrats/
>  Chairman of the Supervisory Board:
>  Prof. Dr. Hanns Ruder
>  Sitz/Registered Office: Tuebingen
>  Registergericht/Registration Court: Stuttgart
>  Registernummer/Commercial Register No.: HRB 382196
>
>
>
>
>  _______________________________________________
>  osg-submissions mailing list
>  [email protected]
>  
> http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
>
_______________________________________________
osg-submissions mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org

Reply via email to