Merge pull request #119 from LaurensVoerman/Submissions2c

Fixed clone osgVolume::Scalarproperty and osg::TextureBuffer crash
This commit is contained in:
OpenSceneGraph git repository
2016-09-02 17:47:37 +01:00
committed by GitHub
2 changed files with 4 additions and 2 deletions

View File

@@ -35,7 +35,9 @@ TextureBuffer::TextureBuffer(const TextureBuffer& text,const CopyOp& copyop):
Texture(text,copyop),
_textureWidth(text._textureWidth)
{
setBufferData(osg::clone(text._bufferData.get(), copyop));
if (text._bufferData.valid()) {
setBufferData(osg::clone(text._bufferData.get(), copyop));
}
}
TextureBuffer::~TextureBuffer()