mirror of https://github.com/axmolengine/axmol.git
Merge pull request #3032 from dumganhar/iss2342-build-errors
closed #2342: Fixing compilation errors when CC_ENABLE_CACHE_TEXTURE_DATA is enabled.
This commit is contained in:
commit
2c08f25c47
|
@ -515,7 +515,7 @@ bool Texture2D::initWithString(const char *text, ccFontDefinition *textDefinitio
|
|||
|
||||
#if CC_ENABLE_CACHE_TEXTURE_DATA
|
||||
// cache the texture data
|
||||
VolatileTexture::addStringTexture(this, text, dimensions, hAlignment, vAlignment, fontName, fontSize);
|
||||
VolatileTexture::addStringTexture(this, text, textDefinition->_dimensions, textDefinition->_alignment, textDefinition->_vertAlignment, textDefinition->_fontName.c_str(), textDefinition->_fontSize);
|
||||
#endif
|
||||
|
||||
bool bRet = false;
|
||||
|
|
Loading…
Reference in New Issue