Converted std::max to osg::maximum to fix VS2013 build error

This commit is contained in:
Robert Osfield
2013-11-21 11:02:08 +00:00
parent a54b999ccc
commit 1e2bead9bc

View File

@@ -54,7 +54,7 @@ int GlyphTexture::compare(const osg::StateAttribute& rhs) const
bool GlyphTexture::getSpaceForGlyph(Glyph* glyph, int& posX, int& posY)
{
int maxAxis = std::max(glyph->s(), glyph->t());
int maxAxis = osg::maximum(glyph->s(), glyph->t());
int margin = _margin + (int)((float)maxAxis * _marginRatio);
int width = glyph->s()+2*margin;