bugfix: osg::TextureBuffer::clone() crash
This commit is contained in:
parent
0433d29d11
commit
d0020b7dfc
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user