Skip to content

Commit 21d05ff

Browse files
author
SeanLin
committed
Merge pull request #1041 from ShengxiangChen/optimizeForMobileBrowser
fixed #2452:Optimize for mobile browser
2 parents 99b4d03 + d885745 commit 21d05ff

File tree

4 files changed

+107
-139
lines changed

4 files changed

+107
-139
lines changed

cocos2d/CCCamera.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,10 @@ cc.Camera = cc.Class.extend(/** @lends cc.Action# */{
5959
_upZ:null,
6060

6161
_dirty:null,
62-
_lookupMatrix:new cc.kmMat4(),
62+
_lookupMatrix:null,
6363

6464
ctor:function () {
65+
this._lookupMatrix = new cc.kmMat4();
6566
this.restore();
6667
},
6768

0 commit comments

Comments
 (0)