mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-01 15:52:40 +08:00
fixed matrix stack update state
This commit is contained in:
@@ -50,11 +50,17 @@ proto.push = function(item) {
|
||||
this.stack.push(this.top);
|
||||
this.top = new cc.math.Matrix4(item);
|
||||
//this.top = this._getFromPool(item);
|
||||
this.update();
|
||||
};
|
||||
|
||||
proto.pop = function() {
|
||||
//this._putInPool(this.top);
|
||||
this.top = this.stack.pop();
|
||||
this.update();
|
||||
};
|
||||
|
||||
proto.update = function () {
|
||||
this.lastUpdated ++;
|
||||
};
|
||||
|
||||
proto.release = function(){
|
||||
|
||||
@@ -106,7 +106,6 @@ math.glMatrixMode = function (mode) {
|
||||
throw new Error("Invalid matrix mode specified"); //TODO: Proper error handling
|
||||
break;
|
||||
}
|
||||
cc.current_stack.lastUpdated = cc.director.getTotalFrames();
|
||||
};
|
||||
|
||||
math.glLoadIdentity = function () {
|
||||
|
||||
Reference in New Issue
Block a user