Merge pull request #314 from pandamicro/develop

Fix compilation issues of CCGLView
This commit is contained in:
Wang Nan
2016-09-08 10:14:43 +08:00
committed by GitHub
3 changed files with 2 additions and 11 deletions
+1
View File
@@ -27,6 +27,7 @@ THE SOFTWARE.
#include "base/CCTouch.h"
#include "base/CCDirector.h"
#include "renderer/CCTextureCache.h"
#include "base/CCEventDispatcher.h"
NS_CC_BEGIN
@@ -108,7 +108,7 @@ cc.AsyncPool = function(srcObj, limit, iterator, onEnd, target){
}
for(var i = 0; i < self._limit; i++)
self._handleItem();
}
};
};
/**
@@ -3144,13 +3144,3 @@ cc.GLProgram.prototype.setUniformLocationWithMatrix4fv = function(){
this.setUniformLocationWithMatrixfvUnion.apply(this, tempArray);
};
var jsbSetUniformCallback = cc.GLProgramState.prototype.setUniformCallback;
cc.GLProgramState.prototype.setUniformCallback = function (uniform, callback) {
if (!jsb._root) {
jsb._root = {};
}
var owner = jsb._root;
jsb.addRoot(owner, callback);
jsbSetUniformCallback.call(this, uniform, callback);
};