Hello Johannes,
Johannes Brunen wrote:
> I have applied a correction to function onDestroy of class TextureChunk
> in file OSGTextureChunk.cpp.
>
> void TextureChunk::onDestroy(void)
> {
> Inherited::onDestroy();
>
> if(_sfImage.getValue() != NullFC)
> {
> subRefCP(_sfImage.getValue());
> --> TextureChunkPtr thisPtr(*this);
> --> _sfImage.getValue()->subParent(thisPtr);
> }
> if(getGLId() > 0)
> Window::destroyGLObject(getGLId(), 1);
> }
right, although <nitpick_mode> the subRefCP must come after the
subParent </nitpick_mode> ;)
> Carsten could you please check this one and update the OpenSG 1.8 CVS.
just did [1], many thanks for sending the patch!
> I'm not sure if OpenSG 2.0 is also affected.
yes, it has a similar problem, but the TextureChunk is deprecated there
and replaced with TextureObjChunk and TextureEnvChunk. Anyways I'll
change the SFImage to be a child pointer field, then it should handle
this automagically.
Cheers,
Carsten
[1] I forgot to give credit to you in the commit message, sorry about that.
------------------------------------------------------------------------------
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users