[Bf-committers] small FTGL patch required for colored texts.

Rob Haarsma bf-committers@blender.org
Wed, 16 Apr 2003 14:37:41 +0200


Hey all,

I modified the code so all glyphs are generated in white by default,
which allows Blender to modify the colors when needed.

Change from line 33 in FTGL\src\FTPixmapGlyph.cpp;

         // Get the current glColor.
         float ftglColour[4];
//        glGetFloatv( GL_CURRENT_COLOR, ftglColour);

         ftglColour[0]= ftglColour[1]= ftglColour[2]= ftglColour[3]= 1.0;

Thats all,

Rob