bugfix: osg::TextureBuffer::clone() crash

This commit is contained in:
Laurens Voerman 2016-08-23 14:33:24 +02:00
parent 0433d29d11
commit d0020b7dfc

View File

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