mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-04 10:32:39 +08:00
Merge pull request #314 from pandamicro/develop
Fix compilation issues of CCGLView
This commit is contained in:
@@ -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);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user