Use ref-ptr in canvas adapter getImage
Adjusted while investigating missing tooltip texture with recent OSG versions.
This commit is contained in:
@@ -463,7 +463,7 @@ namespace canvas
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
void Image::setImage(osg::Image *img)
|
||||
void Image::setImage(osg::ref_ptr<osg::Image> img)
|
||||
{
|
||||
// remove canvas...
|
||||
setSrcCanvas( CanvasPtr() );
|
||||
|
||||
@@ -59,7 +59,7 @@ namespace canvas
|
||||
void setSrcCanvas(CanvasPtr canvas);
|
||||
CanvasWeakPtr getSrcCanvas() const;
|
||||
|
||||
void setImage(osg::Image *img);
|
||||
void setImage(osg::ref_ptr<osg::Image> img);
|
||||
void setFill(const std::string& fill);
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user