diff --git a/src/osgText/Glyph.cpp b/src/osgText/Glyph.cpp index 339b47f8f..7faa4d25f 100644 --- a/src/osgText/Glyph.cpp +++ b/src/osgText/Glyph.cpp @@ -372,6 +372,12 @@ void GlyphTexture::apply(osg::State& state) const // clear the list since we have now subloaded them. glyphsWereSubloading.clear(); + glPixelStorei(GL_UNPACK_ALIGNMENT,1); + + #if !defined(OSG_GLES1_AVAILABLE) && !defined(OSG_GLES2_AVAILABLE) + glPixelStorei(GL_UNPACK_ROW_LENGTH,getTextureWidth()); + #endif + // Subload the image once glTexSubImage2D( GL_TEXTURE_2D, 0, 0, 0, getTextureWidth(),