Fixes for optional compile of GL_LUMINANCE_ALPHA and GL_ALPHA texture usage

in fonts.  Default to GL_ALPHA.
This commit is contained in:
Robert Osfield
2003-12-09 12:04:14 +00:00
parent 4c3f6004df
commit bbde1b2ae7
4 changed files with 67 additions and 7 deletions

View File

@@ -195,8 +195,7 @@ void DefaultFont::constructGlyphs()
unsigned int sourceWidth = 8;
unsigned int sourceHeight = 12;
//#define USE_LUMINANCE_ALPHA
#ifdef USE_LUMINANCE_ALPHA
#ifdef OSG_FONT_USE_LUMINANCE_ALPHA
_width = sourceWidth+2*_margin;
_height = sourceHeight+2*_margin;