mirror of https://github.com/axmolengine/axmol.git
disabled distanceFieldEnabled for WP8 as the shader crashes some older windows phones
This commit is contained in:
parent
af14b40ba0
commit
145156d698
|
@ -395,7 +395,13 @@ void Label::setFontAtlas(FontAtlas* atlas,bool distanceFieldEnabled /* = false *
|
||||||
_commonLineHeight = _fontAtlas->getCommonLineHeight();
|
_commonLineHeight = _fontAtlas->getCommonLineHeight();
|
||||||
_contentDirty = true;
|
_contentDirty = true;
|
||||||
}
|
}
|
||||||
|
#if CC_TARGET_PLATFORM != CC_PLATFORM_WP8
|
||||||
_useDistanceField = distanceFieldEnabled;
|
_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;
|
_useA8Shader = useA8Shader;
|
||||||
|
|
||||||
if (_currentLabelType != LabelType::TTF)
|
if (_currentLabelType != LabelType::TTF)
|
||||||
|
|
Loading…
Reference in New Issue