mirror of https://github.com/axmolengine/axmol.git
Key should start with '/' to gain performance
Signed-off-by: Ricardo Quesada <ricardoquesada@gmail.com>
This commit is contained in:
parent
3a0e957e9e
commit
2d2e15d275
|
@ -41,8 +41,8 @@ static Texture2D* getDefaultTexture()
|
|||
do
|
||||
{
|
||||
bool bRet = false;
|
||||
const char* key = "__firePngData";
|
||||
texture = TextureCache::getInstance()->textureForKey(key);
|
||||
const char* key = "/__firePngData";
|
||||
texture = TextureCache::getInstance()->getTextureForKey(key);
|
||||
CC_BREAK_IF(texture != NULL);
|
||||
|
||||
pImage = new Image();
|
||||
|
|
Loading…
Reference in New Issue