diff --git a/src/osgText/Glyph.cpp b/src/osgText/Glyph.cpp index 17776780c..7c1dba18a 100644 --- a/src/osgText/Glyph.cpp +++ b/src/osgText/Glyph.cpp @@ -167,7 +167,7 @@ void GlyphTexture::addGlyph(Glyph* glyph, int posX, int posY) glyph->setTextureInfo(_shaderTechnique, info.get()); - copyGlyphImage(glyph, info); + copyGlyphImage(glyph, info.get()); } void GlyphTexture::copyGlyphImage(Glyph* glyph, Glyph::TextureInfo* info)