disabled distanceFieldEnabled for WP8 as the shader crashes some older windows phones

This commit is contained in:
Dale Stammen 2014-10-28 20:56:49 -07:00
parent af14b40ba0
commit 145156d698
1 changed files with 6 additions and 0 deletions

View File

@ -395,7 +395,13 @@ void Label::setFontAtlas(FontAtlas* atlas,bool distanceFieldEnabled /* = false *
_commonLineHeight = _fontAtlas->getCommonLineHeight();
_contentDirty = true;
}
#if CC_TARGET_PLATFORM != CC_PLATFORM_WP8
_useDistanceField = distanceFieldEnabled;
#else
// some older Windows Phones cannot run the ccShader_Label_df.frag program
// so we must disable distance field
_useDistanceField = false;
#endif
_useA8Shader = useA8Shader;
if (_currentLabelType != LabelType::TTF)