use osg::maximum, not std::max

This commit is contained in:
Laurens Voerman 2017-10-27 09:41:28 +02:00
parent 1126812f8f
commit 93ef9d1dc9

View File

@ -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;