Hi Robert,
Robert Osfield schrieb:
Hi Peter,
On Wed, Jul 1, 2009 at 4:42 PM, Peter
Hrenka<[email protected]> wrote:
I think the calls to releaseGLObjects() in DrawElementsU(Byte/Short/Int)
are inappropriate.
Looking at the big picture I found that releaseGLObjects
is called when closing a GraphicsContext or in the
DataBasePager for expired children. I do not think that
an object which uses shared GL-Objects should call
releaseGLObjects() in its destructor and neither
Drawable nor Geometry currenty do so.
Yikes, go for breaking lots of application why don't you.
Could you please describe a use-case that will fail
with my changes applied. Then I can try to rework
my submission.
relaseGLObjects() exists to make sure graphics objects are cleaned up
correctly. The method hasn't just been added for a bit of merry-meant
because I was bored one day.
I did not intend to say otherwise.
All I was trying to say is that calling it from said
destructors is not needed when the changes from
my submission osgdrawelementsupdate2.zip have been
incorporated. Then the Geometry will ensure that
releaseGLObjects is called on the BufferObjects.
It does rather sound like you haven't grasped the big picture.
releaseGLObjects() is *essential*.
Again, I never wanted to question the need for releaseGLObjects.
This is all about which object should call releaseGLObjects
and when. Maybe I got it wrong, but then I'd like to know
what case I am not seeing.
Robert.
Thank you for your patience
Peter
--
Vorstand/Board of Management:
Dr. Bernd Finkbeiner, Dr. Roland Niemeier,
Dr. Arno Steitz, Dr. Ingrid Zech
Vorsitzender des Aufsichtsrats/
Chairman of the Supervisory Board:
Michel Lepert
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