use osg::maximum, not std::max
This commit is contained in:
parent
1126812f8f
commit
93ef9d1dc9
@ -88,7 +88,7 @@ int GlyphTexture::getTexelMargin(const Glyph* glyph)
|
||||
int height = glyph->t();
|
||||
int effect_margin = getEffectMargin(glyph);
|
||||
|
||||
int max_dimension = std::max(width, height) + 2 * effect_margin;
|
||||
int max_dimension = osg::maximum(width, height) + 2 * effect_margin;
|
||||
int margin = osg::maximum(max_dimension/4, 2) + effect_margin;
|
||||
|
||||
return margin;
|
||||
|
Loading…
Reference in New Issue
Block a user