[osg-submissions] Maximum number of graphics contexts and Texture unref image data after apply
Lionel Lagarde
lionel.lagarde at oktal.fr
Mon Feb 18 07:43:36 PST 2008
Sorry ... I missed the reply.
Here is the file.
Hi,
An osg::Texture can unref its image after its apply. A Texture2D unref
its image if areAllTextureObjectsLoaded method returns true.
This method checks the if a texture object has been allocated for each
graphic context. The number of graphic context is given by the
DisplaySettings::getMaxNumberOfGraphicsContexts method.
The 1.2 version of OSG (with Producer) updates the maximum number of
graphic context for each created window.
The 2.x version of OSG updates the maximum number of graphic context
only if the new context ID is greater than the current number of graphic
context.
The attached fix updates the DisplaySettings instance for each created
GraphicsContext.
_______________________________________________
osg-submissions mailing list
osg-submissions at lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: GraphicsContext.cpp
Url: http://lists.openscenegraph.org/pipermail/osg-submissions-openscenegraph.org/attachments/20080218/fc1e4422/attachment.pot
More information about the osg-submissions
mailing list