Skip to content

Commit 0ff97d0

Browse files
committed
Fix texture cache.dumpCachedTextureInfo
1 parent f192b7d commit 0ff97d0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: cocos2d/core/textures/CCTextureCache.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -279,11 +279,11 @@ cc.textureCache = /** @lends cc.textureCache# */{
279279
var selTexture = locTextures[key];
280280
count++;
281281
if (selTexture.getHtmlElementObj() instanceof HTMLImageElement)
282-
cc.log(cc._LogInfos.textureCache_dumpCachedTextureInfo, key, selTexture.getHtmlElementObj().src, selTexture.pixelsWidth, selTexture.pixelsHeight);
282+
cc.log(cc._LogInfos.textureCache_dumpCachedTextureInfo, key, selTexture.getHtmlElementObj().src, selTexture.getPixelsWide(), selTexture.getPixelsHigh());
283283
else {
284-
cc.log(cc._LogInfos.textureCache_dumpCachedTextureInfo_2, key, selTexture.pixelsWidth, selTexture.pixelsHeight);
284+
cc.log(cc._LogInfos.textureCache_dumpCachedTextureInfo_2, key, selTexture.getPixelsWide(), selTexture.getPixelsHigh());
285285
}
286-
totalBytes += selTexture.pixelsWidth * selTexture.pixelsHeight * 4;
286+
totalBytes += selTexture.getPixelsWide() * selTexture.getPixelsHigh() * 4;
287287
}
288288

289289
var locTextureColorsCache = this._textureColorsCache;

0 commit comments

Comments
 (0)