diff --git a/src/osgPlugins/freetype/FreeTypeFont.cpp b/src/osgPlugins/freetype/FreeTypeFont.cpp index fa97c7b1e..d869b6342 100644 --- a/src/osgPlugins/freetype/FreeTypeFont.cpp +++ b/src/osgPlugins/freetype/FreeTypeFont.cpp @@ -85,7 +85,7 @@ osgText::Font::Glyph* FreeTypeFont::getGlyph(unsigned int charcode) // clear the image to zeros. - for(unsigned char* p=data;p!=data+dataSize;++p) *p = 0; + for(unsigned char* p=data;psetImage(width,height,1, GL_LUMINANCE_ALPHA, diff --git a/src/osgSim/LightPointDrawable.cpp b/src/osgSim/LightPointDrawable.cpp index caa3f754e..d87798595 100644 --- a/src/osgSim/LightPointDrawable.cpp +++ b/src/osgSim/LightPointDrawable.cpp @@ -162,6 +162,8 @@ void LightPointDrawable::drawImplementation(osg::State& state) const state.haveAppliedAttribute(osg::StateAttribute::POINT); + state.dirtyAllVertexArrays(); + // restore the state afterwards. state.apply(); diff --git a/src/osgText/DefaultFont.cpp b/src/osgText/DefaultFont.cpp index 8e21a0dc2..ff01a1544 100644 --- a/src/osgText/DefaultFont.cpp +++ b/src/osgText/DefaultFont.cpp @@ -209,7 +209,7 @@ void DefaultFont::constructGlyphs() unsigned char* data = new unsigned char[dataSize]; // clear the image to zeros. - for(unsigned char* p=data;p!=data+dataSize;++p) *p = 0; + for(unsigned char* p=data;psetImage(_width,_height,1, GL_LUMINANCE_ALPHA, @@ -229,21 +229,37 @@ void DefaultFont::constructGlyphs() for(unsigned int row=0;row