Warning fixes
This commit is contained in:
@@ -666,9 +666,9 @@ void Font::GlyphTexture::apply(osg::State& state) const
|
||||
}
|
||||
|
||||
if (s_renderer &&
|
||||
(strstr((const char*)s_renderer,"Radeon")!=0) ||
|
||||
((strstr((const char*)s_renderer,"Radeon")!=0) ||
|
||||
(strstr((const char*)s_renderer,"RADEON")!=0) ||
|
||||
(strstr((const char*)s_renderer,"ALL-IN-WONDER")!=0))
|
||||
(strstr((const char*)s_renderer,"ALL-IN-WONDER")!=0)))
|
||||
{
|
||||
// we're running on an ATI, so need to work around its
|
||||
// subloading bugs by loading all at once.
|
||||
|
||||
@@ -304,13 +304,13 @@ std::string String::createUTF8EncodedString() const
|
||||
else if (currentChar < 0x800)
|
||||
{
|
||||
utf8string+=(char)(0xc0 | (currentChar>>6));
|
||||
utf8string+=(char)(0x80 | currentChar & 0x3f);
|
||||
utf8string+=(char)(0x80 | (currentChar & 0x3f));
|
||||
}
|
||||
else
|
||||
{
|
||||
utf8string+=(char)(0xe0 | (currentChar>>12));
|
||||
utf8string+=(char)(0x80 | (currentChar>>6) & 0x3f);
|
||||
utf8string+=(char)(0x80 | currentChar & 0x3f);
|
||||
utf8string+=(char)(0x80 | ((currentChar>>6) & 0x3f));
|
||||
utf8string+=(char)(0x80 | (currentChar & 0x3f));
|
||||
}
|
||||
}
|
||||
return utf8string;
|
||||
|
||||
Reference in New Issue
Block a user