Hi,

The Texture2DArray copy constructor Texture2DArray(const Texture2DArray& 
text,const CopyOp& copyop) seg faults because the _images vector is not 
initialized prior to calling setImage. I suggest that it be changed to call 
setTextureSize with the new dimensions instead of setting the member variables 
directly. That will correctly initialize the _images vector.

Attached is the latest OSG trunk Texture2DArray with the proposed change.

besides adding the call to setTextureSize the line:

_modifiedCount.push_back(ImageModifiedCount());

was also removed because this is also taken care of by the setTextureSize call. 
_textureDepth was initialized to 0 so that setTextureSize works correctly.

Thanks,

Tim

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=60742#60742




Attachments: 
http://forum.openscenegraph.org//files/texture2darray_171.cpp


_______________________________________________
osg-submissions mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org

Reply via email to