Added setting of glPixelStore before glTexSubImage2D call.

git-svn-id: http://svn.openscenegraph.org/osg/OpenSceneGraph/trunk@14374 16af8721-9629-0410-8352-f15c8da7e697
This commit is contained in:
Robert Osfield
2014-07-21 13:45:58 +00:00
parent 8f39d7a2b2
commit 6bb2251faf

View File

@@ -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(),